ASP, sessions and servers

  • Thread starter Stephanie Stowe
  • Start date
S

Stephanie Stowe

Hi. I have an ASP app running on a server listening, as usual, on port 80. I
have set it up sp that the domain is stephie.com (testing some weirdness
with cookies). I have another server (same machine really, but that will not
be the case in test or production) on stephie.com running Websphere
listening on port 9080. A person runs an ASP. It redirects them to a page on
stephie.com:9080. The user hits the back button to return to ASP. Would the
session still be active? My page is weird and I cannot tell if it is
starting a new session or not.

Thanks

S
 
J

Jeremy Markman

Web browsing is a stateless activity, which is why the server
generates sessions in the first place (to let you try to maintain some
semblace of state).

In any case, the server has no clue if you have gone to a different
site or a different port or whatever. The session will remain open as
long as you haven't reached the session timeout period.

By default, I believe that IIS has a session timeout period of 20
minutes. So, if you do not visit a page on your domain for over 20
minutes, then a new session would start, otherwise the original
session remains in tact.

Jeremy
 
S

Stephanie Stowe

Hmmm. I know that the timeout will cause the session to end. I know that
closing the browser window will cause the session to end. I *thought* that
entering a different domain in the URL would cause the session to end. Or,
really, a new one to be created on reentry. I must have dreamt that last
night in my sleep.

S
 
S

Stephanie Stowe

P.S. Thanks

Jeremy Markman said:
Web browsing is a stateless activity, which is why the server
generates sessions in the first place (to let you try to maintain some
semblace of state).

In any case, the server has no clue if you have gone to a different
site or a different port or whatever. The session will remain open as
long as you haven't reached the session timeout period.

By default, I believe that IIS has a session timeout period of 20
minutes. So, if you do not visit a page on your domain for over 20
minutes, then a new session would start, otherwise the original
session remains in tact.

Jeremy
 
B

Bob Barrows [MVP]

Stephanie said:
Hmmm. I know that the timeout will cause the session to end. I know
that closing the browser window will cause the session to end.

Wrong! The session will not end until
1.it is timed out.
2.the session.abandon command is executed

Closing the browser or navigating to a new domain will not end the session.

Opening a new browser window will initiate a new session, but the previous
session will remain in the server's memory until the timeout occurs.

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top