|  | Posted by Pedro Graca on 10/13/06 21:17 
turnitup wrote:> if I do
 >
 > session_save_path("/blah/blah/")
 
 Session data is saved to /blah/blah
 
 > it saves my sessions to that path.
 >
 > but if I follow it by
 > session_set_cookie_params(nnnn, "/blah/blah/")
 >
 > it breaks session_start.
 
 The client sends cookies to pages in "http://www.yourserver.com/blah/blah"
 but the script where you call session_start() is not in that directory,
 so it never receives a session id from the client.
 
 > however
 >
 > session_set_cookie_params(nnnn);
 
 Unless you changed `session.cookie_path` in php.ini, this is the
 same as
 
 session_set_cookie_params(nnnn, '/');
 
 > session_start();
 >
 > works fine!!
 
 The client and the server are in synch! :)
 
 > Is there something I am doing wrong, or is there a workaround?
 > Basically, I need a system which allows a browser to sit idle for a
 > number of hours for what is an intranet application, but I need my
 > sessions stored to a specific location.
 
 Do not use session_set_cookie_params(), or, if you must, keep it short
 and omit the 'path` parameter.
 
 --
 File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
 [Back to original message] |