This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes URL Rewrting. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "URL Rewrting." Watch "URL Rewrting." New topic
Author

URL Rewrting.

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Is URL Rewriting dependent upon cookies, as JSESSIONIS is a cookie,
so if Cookies are disabled will this work?


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Vibha Jindal
Greenhorn

Joined: Nov 25, 2003
Posts: 10
URL rewriting is not dependent on cookies. In fact, it is quite useful when cookies are disabled.
URL rewriting, as the name suggests, rewrites the URL.
True, JSESSIONID is a cookie. So, if cookies are disabled, JSESSIONID would not be available to the server from your browser.
To solve this problem, you can use URL rewriting, which will just append, say, JSESSIONID=<sessionIdValue> at the end of your URL, so that your server-side components can retrieve the session id from the URL instead of the cookie.
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Thanx a lot Vibha...
URL Rewriting is substitute to the cookie..m i rite?
Cheers
[ November 25, 2003: Message edited by: Andy Smith ]
Vibha Jindal
Greenhorn

Joined: Nov 25, 2003
Posts: 10
u r welcome...
yepp, you can say that...
Although URL rewriting can mean a lot of things other than just substituting for cookies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL Rewrting.
 
Similar Threads
remember user password in jsp/java
WA #1.....word association
how to track an url when a user clicks on it using cookies
Session sharing (JSP-PHP)
handling next and back buttons in javascript