You are here: Re: session_set_cookie_params and session_save_path « PHP Programming Language « IT news, forums, messages
Re: session_set_cookie_params and session_save_path

Posted by Andy Hassall on 10/13/06 21:11

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@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация