Re: session_set_cookie_params and session_save_path



On Fri, 13 Oct 2006 20:29:54 +0100, turnitup <same@same> wrote:

I seem to be able to get these to work separately, but not together.

So if I do

session_save_path("/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.

You've possibly misunderstood the "path" parameter on
session_set_cookie_params - it's the URL path prefix for which the cookie
applies - corresponding to the path parameter on setcookie() - it is not the
session save path.

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • Re: Object in session question
    ... Perhaps I misunderstood, but what do you see as the problem? ... You said "isn't he putting a page into a session object?" ... Sessions are bad only when used incorrectly. ... > Public Shared Function getSQLAs ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to avoid session ID being appended to url?
    ... was trying to do something with sessions the other day, ... http://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool ...
    (comp.lang.php)
  • Re: Re: Kernel 2.4
    ... I misunderstood your question and can't help on the 2.6 ... All the logs are in /var/log, so looking there for your 2.6 sessions' ... Good luck! ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: How to put the previous page url as a variable
    ... >post the information, use sessions or cookies. ... Space: disk usage analysis tool ...
    (comp.lang.php)
  • Re: Sessions
    ... >properly for sessions. ... Space: disk usage analysis tool ...
    (comp.lang.php)