473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Do not update Session timeout

I want to write an apsx page that when loaded does not refresh
Session.Timeout.
It is going to be running in an iframe and refreshing every couple of
minutes.

example. User has 15 minutes left until session expires. iframe.aspx loads
and session still has 15 minutes left.

Is this possible?
I was trying to grab session.timeout at the begininning of the page (init)
and then resetting it back to that value at the end, but session.timeout
always = 20

Thanks
Jon
Nov 18 '05 #1
5 2642
i'm not really understanding what you want to do here. resetting the session
time out to another value will cause the timeout to change. Are you wanting
to turn off the timeout? what problems are you having? some code would help

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Jon Booth" <jo*******@nusystems.com.au> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to write an apsx page that when loaded does not refresh
Session.Timeout.
It is going to be running in an iframe and refreshing every couple of
minutes.

example. User has 15 minutes left until session expires. iframe.aspx loads
and session still has 15 minutes left.

Is this possible?
I was trying to grab session.timeout at the begininning of the page (init)
and then resetting it back to that value at the end, but session.timeout
always = 20

Thanks
Jon

Nov 18 '05 #2
>> I want to write an apsx page that when loaded does not refresh
Session.Timeout. It is going to be running in an iframe and refreshing
every couple of minutes.
i'm not really understanding what you want to do here.


It took me a while too but I think I understand what he is after. He wants
to make a sneeky request that does not prolong the session's lifetime. He
probably wants to achieve something the wrong way.
Is this possible?


No. You'd better tell what you really want, there is probably a right way to
get there instead of using session timeout. You may already be using session
timeout for the wrong purposes. Do you want to track users beyond a certain
page? You may want to use authentication for that instead. Think of session
as something ASP.NET uses for keeping track of browser instances. Tracking
users is something different that you will be doing independently from
sessions.

Martin.
Nov 18 '05 #3
Hi guys,
Sorry for the confusion.
In all the pages on my site I have a little iframe that updates every 2
minutes, displaying a little message (similar to breaking news etc). Because
each time this page updates the session.timeout got reset the user's session
never expired. I was hoping there was a way to stop the session.timeout from
being reset. This is not possible.

I have created a workaround by holding in a session datetime.now from the
main page and checking in the message iframe if this is more than 20 minutes
then killing the session. This suits my needs.

Thanks for your time.
"Martin" <du***@somewhere.nl> wrote in message
news:40***********************@news.euronet.nl...
I want to write an apsx page that when loaded does not refresh
Session.Timeout. It is going to be running in an iframe and refreshing
every couple of minutes.
i'm not really understanding what you want to do here.
It took me a while too but I think I understand what he is after. He wants
to make a sneeky request that does not prolong the session's lifetime. He
probably wants to achieve something the wrong way.
Is this possible?


No. You'd better tell what you really want, there is probably a right way

to get there instead of using session timeout. You may already be using session timeout for the wrong purposes. Do you want to track users beyond a certain page? You may want to use authentication for that instead. Think of session as something ASP.NET uses for keeping track of browser instances. Tracking
users is something different that you will be doing independently from
sessions.

Martin.

Nov 18 '05 #4
> I have created a workaround by holding in a session datetime.now from the
main page and checking in the message iframe if this is more than 20 minutes then killing the session. This suits my needs.


Well that's not very nice on the visitor of your site. If he stays around
for more than 20 minutes he will find his session killed while in the middle
of doing something interactive. Of course you get away with it if your site
is stateless anyway of doesn't depend on the session object.

Martin
Nov 18 '05 #5

"Jon Booth" <jo*******@nusystems.com.au> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to write an apsx page that when loaded does not refresh
Session.Timeout.
It is going to be running in an iframe and refreshing every couple of
minutes.

example. User has 15 minutes left until session expires. iframe.aspx loads
and session still has 15 minutes left.

Is this possible?
I was trying to grab session.timeout at the begininning of the page (init)
and then resetting it back to that value at the end, but session.timeout
always = 20

Thanks
Jon


Could you put that "iframe page" in a special directory of your site, where
you also have a new web.config that switches session management off for
this directory?
I have never tried this, but if it works then you wouldn't get sessions for
that particular page (or rather, for that part of the directory tree), so it
shouldn't interfere with the sessions in the rest of the site.

Let us know how this approach works!

Hans Kesting
Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
0
by: Jon Booth | last post by:
I want to write an apsx page that when loaded does not refresh Session.Timeout. It is going to be running in an iframe and refreshing every couple of minutes. example. User has 15 minutes left...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.