[Top] [All Lists]

Re: Session variables - what's up?

Subject: Re: Session variables - what's up?
From: "Murray *ACE*"
Date: Tue, 11 Dec 2007 14:16:24 -0500
Newsgroups: macromedia.dreamweaver.appdev

Excellent - that's how to do it!  Thanks for the hints!

Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
================== - DW FAQs, Tutorials & Resources - DW FAQs, Tutorials & Resources

"Michael Fesser" <[email protected]> wrote in message news:[email protected]
.oO(Murray *ACE*)

Host has already fixed it.  Nice service!


Just for completeness: In order to use your own directory for session
storage, you just create it where you're allowed to and pass the full
path to session_save_path().

In my own session handler I define a path constant, which is based on
$_SERVER['DOCUMENT_ROOT'] and contains the full path to the directory
where I want my session data to be. Then I simply let my script check if
the directory exists and create it if necessary:

 if (!file_exists(EMLIB_APP_SESSION_PATH)) {
 ini_set('session.auto_start', 0);
 ini_set('session.use_cookies', 0);
 ini_set('session.use_trans_sid', 0);


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