You are here: How long do session variables last and how do I change this? « PHP Programming Language « IT news, forums, messages
How long do session variables last and how do I change this?

Posted by bizt on 11/28/84 11:57

Hi,

I am currently putting together a shopping cart where items in the
shopping cart (database table) are identified by a session variable -
$_SESSION["session_id"]

Im finding that the session variable expires maybe after about 30
minutes (I havent timed it exactly). Whats happening is that the cart
is "forgetting" the items previously put in it or more exact is
creating a new session id and assigning the user and any new items to
that instead.

Is it possible to set the session variables to expire when the user
shuts down their browser and not after a certain time (eg. 30 minutes)?
How is this done? Do I define this in my PHP script or should I request
this from my hosting company? I do have a hosting account control
panel, is this the sort of thing I would set there typically?

Cheers

Burnsy

 

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

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