[Logo]
Forums Register Login
cookies and shoping baskets
Ok i am rather a web site newbie, and looking for design patterns really

how do you write a shopping basket if cookies are turned off?

i could use url rewritting (the name from head first) but i was using cookies to get around session timeout.
 

Wendy Gibbons wrote:i could use url rewritting (the name from head first) but i was using cookies to get around session timeout.


Session timeout depends on the HttpSession object. Even if URL rewriting is used, the HttpSession object remains accessible as the same way as how you use it when cookies are used.

Devaka
You could configure the session to never timeout by setting the session-timeout to -1. Then, store the shopping cart info as session attributes.
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter


This thread has been viewed 984 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 19, 2018 16:57:27.