File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sessions without cookies possible?

 
Robert Jaeger
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am planning to use Apache 2/Tomcat 4 for a web project for my thesis.
One important fact is that I have to control user sessions without using cookies.
During the whole visit on the webpage I want to control the user�s language selection. Moreover, if the user has logged in, I want to store some more values (his rights, country, ...) in the session.
Which possibilities do I have?
I read about url-encoding, but I think that is a lot of work (I have to encode every link, submit button, ...!).
I could use JavaBeans to store formular field values, but not every page has a formular.
Do I need to create for every session a file or database entry to save user parameters and values there or can I save them in the session?
How can I get access to user information on every webpage(sessionid, language selection, login time, inactive time, country, rights, ...) without using cookies?
I am a Tomcat/Java/JSP beginner, but interested in using this technology for my project (I think it is very powerful), so if somebody has a good idea I would be very happy!
Hope someone can help me, thanks in advance,
Robert J�ger
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think urlEncode() is your best solution -- it will take care of all that stuff for you (SessionId, Timeout, etc). Basically if cookies aren't enabled, it will simply tack on the JSESSIONID parameter onto the URL, and then the appserver will use that as the session identifier.
Plus... adding urlEncode to each of your links is going to be a lot easier than developing your own session management (more portable that way too if you decide to go to an enterprise application server).
[ June 23, 2002: Message edited by: Jessica Sant ]
 
Robert Jaeger
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your advice! I will use this solution!
Greetings from Vienna,
Robert Jaeger
 
Randall Twede
Ranch Hand
Posts: 4353
2
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
way to go...i felt real bad telling them they need cookies enabled to get in
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use hidden form fields.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic