• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Cookies and Url-rewriting question

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

We are using an out-of-box web application developed in Java.I do not have access to the code. I was checking how the applications maintains it state.

This is what i did:

I turned off the cookies, logged into the application, copied the url (along with sessionid) in a new browser and was able to get the maintain the session.

But with cookies turned on; When i log in to the application,the url,has tag like /app?service=external/AdminDimension&sp=1&sp=2which tells the page in the application.

I copied the url and pasted in a new browser, it goes the specified page, but when you click on the other tabs, it says login has expired.

One thing i cannot get is why with cookies, i cannot keep the state in different with url-rewriting i am able to do that.

As per Maha anna posting

"URLRewring is nothing but 'get the jsessionid from URL itself' kind of (NOT from cookie). What it really means is when you make a request to the web appln you APPEND the extra jsessionid info in the URL itself so that the web application can know which session belongs to this particular user. "



Can you restrict the cookies on be restricted to one instance of browser or what ?

Please help.

thanks
[ September 22, 2006: Message edited by: Bear Bibeault ]
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic