omelette
-
Posts
7 -
Joined
-
Last visited
Never
Posts posted by omelette
-
-
I have tried putting:
session_set_cookie_params(0);
on every page before session_start but this is not having any effect. Am I using it properly? -
Yeah, i think that probably is the problem now, just don't know how to solve it!
I haven't got access to php.ini so need to know if there is another way to change this setting to 0 as i think it may be causing other problems. -
I am closing all instances of the browser, I am using Internet Explorer.
I created a session variable and when i close and reopen the browser, the value in the variable is retained.
I am starting the sessions on every page with session_start().
Would the session.cookie_lifetime have anything to do with the problem? It is set to 3600 and i think the default is 0. -
Does anyone have any idea why my session doesn't seem to be ending properly when I close my browser? Could it be to do with the php settings?
I checked the session ID then closed and reopened the browser and the session ID was the same! -
So would that involve destroying the session or unsetting the particular variables in the session?
I am a bit reluctant to destroy the session whenever the shopping cart is emptied because I think this will get rid of other variables from the session that will still be needed, i.e. login information. -
I have been recently trying to set up an online shop using a free shopping cart package (Shop Script). I set this up on my personal website to test it out and there were no visible problems. The person I am making the site for then decided they would prefer to use Lycos eshop instead. Once the package had been purchased it was found that it did not meet our requirements so I transferred the shop script cart over to this space.
I now found that the shopping cart is randomly filled with items from time to time, there is no apparant pattern to when this occurs only that the items added are items that were earlier added to the cart.
From what I can tell it appears that when I empty the cart, the session is cleared but then when I load a page, data is being put back in to the session!
I am using PHP version 4.3.9. Lycos seem to have disabled a few PHP functions, (sessions are not on of them) not sure if this has anything to do with it.
Does anyone have any idea what the problem is and a possible solution.
Thanks.
session not ending
in PHP Coding Help
Posted
the only problem is that by setting the cookie parameters to 0, whenever the browser is refreshed, the session is lost so the session doesn't work! i wanted the session to end only when the browser closes, not when it is refreshed.
any ideas?