473,837 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2680
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*******@nusy stems.com.au> wrote in message
news:%2******** ********@TK2MSF TNGP09.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***@somewher e.nl> wrote in message
news:40******** *************** @news.euronet.n l...
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*******@nusy stems.com.au> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
43201
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
263
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 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)
4
15475
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 | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
8
7318
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 (without entering username and password) using the cookies. Now in this case the 20 mins session timeout has no meaning anymore so I m thinking to make the timeout infinite in this case only. my question is, if i do this, and then a user used the...
11
3015
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
2093
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 store, there is only one complicated object in this Session, but to get it on SessionStart to make a copy this is a problem. Maybe using Application or whatever? Or this data is divided and inaccessible anyway? Just D.
17
5221
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 running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
4
9464
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 the forms authentication to be a large value for that page also. TIA - Jeff.
25
6109
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
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10874
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10566
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10623
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10271
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7806
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7000
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3124
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.