473,386 Members | 1,679 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,386 software developers and data experts.

Make session last longer than 20 minutes.

Hi guys/girls,
I just published this article on codeproject and think a lot of you will be
interested.

http://www.codeproject.com/useritems/SessionForever.asp
Sorry for self promotion but I decided it's better to get it there than show
how it works every other day to someone.
Plus I think no one will refuse to implement the feature when users are
staying logged in for as long as they have your site/page open (unless you
work in a bank of course).
Thanks
George.
Apr 28 '06 #1
3 1399
Hi,

George Ter-Saakov wrote:
Hi guys/girls,
I just published this article on codeproject and think a lot of you will be
interested.

http://www.codeproject.com/useritems/SessionForever.asp
Sorry for self promotion but I decided it's better to get it there than show
how it works every other day to someone.
Plus I think no one will refuse to implement the feature when users are
staying logged in for as long as they have your site/page open (unless you
work in a bank of course).
Thanks
George.


Note that calling web services (an ASMX "page") will also renew the
session in the same way that you describe in your article, so if your
page has calls to an ASMX content, you may as well make it periodical to
reach the same effect at no cost.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Apr 28 '06 #2
Not sure how do you call web service from the browser.
But anyway it's good to know that WebServices share the same session pool
with the application.
George
"Laurent Bugnion" <lb******@bluewin.ch> wrote in message
news:44********@news.bluewin.ch...
Hi,

George Ter-Saakov wrote:
Hi guys/girls,
I just published this article on codeproject and think a lot of you will
be interested.

http://www.codeproject.com/useritems/SessionForever.asp
Sorry for self promotion but I decided it's better to get it there than
show how it works every other day to someone.
Plus I think no one will refuse to implement the feature when users are
staying logged in for as long as they have your site/page open (unless
you work in a bank of course).
Thanks
George.


Note that calling web services (an ASMX "page") will also renew the
session in the same way that you describe in your article, so if your page
has calls to an ASMX content, you may as well make it periodical to reach
the same effect at no cost.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Apr 28 '06 #3
Hi,

George Ter-Saakov wrote:
Not sure how do you call web service from the browser.
But anyway it's good to know that WebServices share the same session pool
with the application.
George


You use the XmlHttpObject to send a request to the ASMX page. The major
difficulty is to create the SOAP envelope for the request and to decode
the Response, also in SOAP, but this should be much easier with Atlas.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Apr 29 '06 #4

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

Similar topics

9
by: Marcus | last post by:
Hello, Currently all of my php pages use SSL, not just my initial login. Originally I thought this would be more secure, but after thinking about things and looking at sites like Amazon and...
3
by: Zaccariah Kowalsky | last post by:
Hello, I have a webapp with on each page a "language" drop down list. Now, if I choose X, I want to initialise the drop down list to X. Easy to understand. But what is the best way to do this 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.
15
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
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...
5
by: Logu Krishnan | last post by:
Hi I'm trying to profile my application and do sizing of the app. is there a way to size the session ?? -- Logu Krishnan
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
13
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I support several intranet sites one of which had NO STATE. Even though content has ASP extensions, it was all rendered HTML. Site had NO session or application variables being managed. Site had...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...

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.