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]
|