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

Posted by turnitup on 10/13/06 19:29

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.

however

session_set_cookie_params(nnnn);
session_start();

works fine!!

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.

Any ideas? Thanks in advance

 

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

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