This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding cookie disable

 
sujava mam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am storing user details in cookies which will be used when user connects to same site again.But when cookies are disabled i cannot store the details required.Is there any alternative solution for thsi problem. I mean can i store details other than in cookies or session.I want 2 read those values whe user connects 2 site again.

Kindly advice me.

Regards,
Srijava
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can maintain session information without cookies by using url rewriting.
For long term persistance, however, without cookies, you won't be able to remember users when they come back unless you ask them to log in with a username and password.
 
sujava mam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have never worked on url rewriting . can any one give me some sample code to understand what is url rewriting.

Regards,
sujava mam
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at SRV.7.1.3 in the servlet spec (link in my signature).
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There really is no code to show. You turn off cookie support on the server (or, alternatively, in the browser) and if the web app now requests a session -and you have encoded all URLs in the HTML code you generate by using HttpServletResponse.encodeURL- then you should see the session IDs as part of all URLs in the HTML.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sujava mam:

I mean can i store details other than in cookies or session.I want 2 read those values whe user connects 2 site again.


For tracking requests from the same client, there are couple of other ways other than the usual cookie way that you can use.
But about the exact problem that you have asked , that is storing in client some information other than by using cookies , I do not think you can do so.
Please do not take my question as hijack.
Do not you feel that there is a good risk by giving someone the ability to write to your disk remotely?


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic