• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sessions without cookies possible?

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your advice! I will use this solution!
Greetings from Vienna,
Robert Jaeger
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
way to go...i felt real bad telling them they need cookies enabled to get in
 
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also use hidden form fields.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic