Re: What is URL rewriting?



URL rewriting is the option when the client browser doesn't accept
cookies. The URL's are encoded in the form
"URL + ;jsessionid=4545". So, you can do response.encodeURL("/
servlet") to encode your URL's, but this will make effect only if the
browser doesn't accept cookies.

On Nov 9, 7:23 am, Sherman Pendley <spamt...@xxxxxxxxxxx> wrote:
kc.wong....@xxxxxxxxx writes:
Arne Vajhøj wrote:
The two methods described is used to associate a request with
a given session.

Dirk wrote:
in the original post he said "...to keep track of users between
requests". That means for me to remember wich user has sent the
request. In the enterprise applications I wrote for my company the
user information is usually stored as session object. We don't do such
things like url rewriting or cookies. But in those applications the
user has to login to the application before he can use it. That seems
to be the difference...

The session and session objects are stored in the server. Since HTTP
is stateless, you need ways to tell which session should be associated
with the HTTP requests the server receives. The server generate an
unique ID for each session, then send the unique ID to the user agent,
so that the user agent can send that ID back on its next request.

That's true if users log in through an HTML form.

If HTTP basic authentication is used instead of an HTML login form, the
user name is sent by the browser as part of the HTTP request headers, and
it can be used to identify the session.

sherm--

--
WV News, Blogging, and Discussion:http://wv-www.com
Cocoa programming in Perl:http://camelbones.sourceforge.net- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: Attempt to de-mystify AJAX
    ... >>maintaining a session via URL is not a problem. ... >> around cookies and JS, but it seems to be tough. ... >> as needed back to the server. ... but as I mentioned before - a non-dynamic request by the browser can ...
    (comp.databases.pick)
  • Re: Why requests come sequentually, not in parallel?
    ... You can easily write your own custom Session object.. ... to avoid perf penalty due to request serialization. ... > 4) serve image B response. ... > The application acts as if it allows only ONE connection from the> browser ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: help about downloading with session and cookie support at windows application
    ... If it just works in your browser, then you are sending something that is ... cookies that are stored locally on your machine. ... you need to fetch those and place them in your request. ... >>> My Aim is to make a windows application download which support session ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Multiple copies of webbrowser control and site logins
    ... "Joe" wrote in message ... > I suppose, given what you said above, if the cookies are for the session ... So there must be a way the browser sends this info to ... cookies before you started you would have to delete them as you go, ...
    (microsoft.public.vc.mfc)
  • Re: Multiple copies of webbrowser control and site logins
    ... "Joe" wrote in message ... > I suppose, given what you said above, if the cookies are for the session ... So there must be a way the browser sends this info to ... cookies before you started you would have to delete them as you go, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)