macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: Session variables - what's up?

Subject: Re: Session variables - what's up?
From: Michael Fesser
Date: Tue, 11 Dec 2007 19:03:03 +0100
Newsgroups: macromedia.dreamweaver.appdev

.oO(Murray *ACE*)

>Thanks, David - looks like that has uncovered something (this from the 
>test-session2.php page) -
>
>Warning: session_start() [function.session-start]: 
>open(/var/lib/php/session/vservers/squarewheeli/tmp/sess_t9e4u778e1pmnfaqp80g72j9d4,
> 
>O_RDWR) failed: Permission denied (13) in 
>/vservers/squarewheeli/htdocs/test-session2.php on line 4

This explains a lot. The web server is not allowed to store the session
file on disk. Usually you want to change the session directory to
something below your own home directory, where you can then set the
required permissions. See session_save_path(). Or try to change the
permissions of the directory above if this should be your own server.

Micha

<Prev in Thread] Current Thread [Next in Thread>