Sunday, January 30, 2011

Generic Question: Keeping the session alive.

Hello

I have a theory question, may not be completely CakePHP but I have implemented this with CakePHP.

My users on the website all run UK businesses selling a specialist product, these businesses usually have showrooms and are quite small in size.

When a user is using my website to place orders, they sometimes have to serve customers entering the showroom, this means that the session dies and they have to (frustratingly) start their order again.

I considered saving all temporary session data on request and allow the user to load the data at a later point, but instead I just made a simple Javascript SetInterval.

Every so often, the website will send a 1-way request to a generic "ping" function, this will keep the session alive indefinately (if the user opted for this feature on sign in)

Is this bad practise?

--
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: