Welcome Guest, Not a member yet? Register   Sign In
CI Session problem
#8

[eluser]Akinzekeel[/eluser]
[quote author="InsiteFX" date="1286880096"]Also if your users are logining in you could use the users login ID![/quote]

This is how I did it in my previous project. But this time guests should be able to use a shopping cart as well.

I basically did what Wan suggested, in my cart constructor I always check if there is a cart_token in the userdata() array. If not, one will be generated. This cart_token is then used to identify which cart articles belong to which visitor.

I'm still not sure if you even understood my problem (sorry if I couldn't explain it very well) but for me the problem is now solved by generating my own ID instead of using the session ID.


Messages In This Thread
CI Session problem - by El Forum - 10-11-2010, 09:13 AM
CI Session problem - by El Forum - 10-11-2010, 11:32 AM
CI Session problem - by El Forum - 10-11-2010, 12:22 PM
CI Session problem - by El Forum - 10-11-2010, 02:01 PM
CI Session problem - by El Forum - 10-11-2010, 02:17 PM
CI Session problem - by El Forum - 10-11-2010, 04:45 PM
CI Session problem - by El Forum - 10-11-2010, 11:41 PM
CI Session problem - by El Forum - 10-12-2010, 08:28 AM
CI Session problem - by El Forum - 10-12-2010, 08:57 AM
CI Session problem - by El Forum - 10-12-2010, 09:16 AM
CI Session problem - by El Forum - 10-12-2010, 11:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB