Click to See Complete Forum and Search --> : sessions in PHP 5
Hi Guys,
Is there an alternative to session_start() for php5 it throws an error when I use it using v5
Cheers,
Drew
CrazyMerlin
07-05-2007, 06:12 PM
What error do you get?
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp)
pcthug
07-05-2007, 09:08 PM
Try changing your current php.ini settings for session.save_handler user to session.save_handler files.
Edit your php.ini file from:
[Session]
; Handler used to store/retrieve data.
session.save_handler = user
to
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
If you do not have access to the php.ini file, you may try an alternate .htaccess rewrite method.
Edit your .htaccess and place the following lines:
RewriteEngine On
php_value session.save_handler files
Thanks for that champ
I will try it
pcthug
07-06-2007, 02:28 AM
No Problem.