Hi,
If cookies is enabled, there should not be a problem.
A minor point here if cookies is disabled (and session
tracking is done by URL rewriting):
Since you say the user will click a link on the other
site to get back to your site, the URL on the other site
will not have the session id. So it may not be possible
to get back to your site in the same session automatically.
One (admitedly messy) workaround I can think of right now is:
Send the session id as a part of the link to the other site
and the other site takes care to append the session id back
to the link to your site to put you back in the same session.
Since you said you can control the url on the other site,
this should be possible.
Note that in any case (cookies or URLRewriting), you should
be able to get back in the same session by using the browser
back button.
regards,
~ amol
Quoting Scott T Weaver <sweaver@xxxxxxxxxxxxxxx>:
>
> On Wed, 2004-05-26 at 10:09, Jason Kretzer/STAR BASE Consulting Inc.
> wrote:
> > I have a question about the persistence of a session. Here is an
> > example scenario:
> >
> > User comes to my site(www.mySite.com) and a session is created and
> > some attributes are added to the session. The user then clicks a link
> > to (www.theOtherSite.com). The user then does some stuff on the other
> > site and clicks a link back to my site.
> >
> > Questions:
> > 1.) Is my original session object still active?
> Yup, until it times out per session time out setting.
>
> > 2.) OR Does the session get destroyed?
> Nope.
>
> > 3.) If the session is destroyed, is there a way to get it back?
> Not destroyed, so there is no need.
> >
> > Separately:
> > 4.) How can session id's be used in this instance?
> If the browser is allowing cookies, don't even concern yourself with the
> session id request parameter and allow the servlet container to extract
> the session id for that site from the previously set cookie.
>
> >
> > Note: I can control the url string on the other site to contain
> > whatever I like at all times.
> >
> >
> > Thanks,
> >
> > -Jason
>
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|