• 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

Regarding cookies disabled and session info lost

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,


I am developing a web application where i have a qutomatic user login feature.I am storing username and password in cookies.All works fine when cookies are working. When cookies are disabled, even if the user types in correct username and apssword he is not loggedin.This happens becoz ....i am loosing the session attributes values that i have set in the action class.From action class control is forwarded to jsp page.Here i ma using the session attributes that i have set.But as they are null i m unable to login. Can one help me out giving a solution.I am using tomcat server.


Thanks
regards,
sujava mam
 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google on url-rewriting when cookies are disabled. Your session-id will be passed as a part of the url and that's how the server will recognise your session.
 
sujava mam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

as you said i have used url rewriting technique using encodeURL. jsessionid is appended to the URL.But still when control passes from action class to JSP page,in jsp i m trying to get the attributes i have set.Those attributes values are null.

Can any one help me sending some sample peice of code to use session in jsp page after urlrewriting is done.

Regards,
sujava mam
 
They weren't very bright, but they were very, very big. Ad contrast:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic