Welcome Guest, Not a member yet? Register   Sign In
cart and session class just don't like each other :(
#1

[eluser]basementDUDE[/eluser]
hey guys

I have set the "sess_expiration" in the config file to 0(never expire) in order to remember what items are in user's cart(I use CI cart class).

Now I want to use session to remember user's info(such as email, name, address etc) for create a user acct, but since I set the session never expire, it will also remember everything, and I think that creates some security issues.

If I destroy session, I also destroy cart
If I keep CI cart, I also have to keep the session data Sad

I am really stuck.

my bad solutiuon will be:
I have to ditch CI cart class and use cookie to store items and set cookie never expire, then i can use native php session to store user data, but in order to do that I have to modify lots of code Sad.


Is there a easy way to clear session data but keeps CI cart untouched when browser close?
(I prefer not to modify session class, since I am a noob)

thanks a lot


Messages In This Thread
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 06:10 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 06:29 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 07:00 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 07:20 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 07:42 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 08:01 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 08:16 PM
cart and session class just don't like each other :( - by El Forum - 07-26-2010, 11:49 PM
cart and session class just don't like each other :( - by El Forum - 07-27-2010, 12:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB