473,320 Members | 2,088 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,320 software developers and data experts.

Endless session

Hi all,

Does anybody know how to configure the session so that the session will
never expire?
Nov 18 '05 #1
4 3355
The sessionState tag in the web.config files allows to control the session
timeout but typically it should be set to the lowest value that fits your
needs, not to an excessive or infinite value...

I believe you have some other kind of problem you should workaround another
way. For example, permanent values should be IMO best stored in a "user
profile" stored in the database rather than to be kept "permanently" in an
infinite session (you can however "cache" these values as session variables
if needed)...

Patrice

--

"Mircea Pleteriu" <mp*******@asp-gmbh.de> a écrit dans le message de
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Does anybody know how to configure the session so that the session will
never expire?


Nov 18 '05 #2
Bad idea:You server will be full of unused sessions. And eventually will run
out of memory.
Here is the solution.

1. Create and ASPX renewSession.aspx that outputs transaprent gif 1x1 pixel.
2. In every page have a folowing HTML
<IMG name="renewSession" height=1 src="/Root/images/transparentpixal.gif"
width=1 border=0>

3. Add to every page folowing Javascript.

<script language="Javascript">
window.setInterval("renewSession()", 600000);

function renewSession()
{
document.images("renewSession").src = /Root/renewSession.aspx?par=" +
Math.random();
}
</script>

So basically an idea that browser will request renewSession.aspx every 10
minutes thus preventing session expiration.

George.


"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Does anybody know how to configure the session so that the session will
never expire?

Nov 18 '05 #3
hi,
why on earth u want ENDLESS session.
hv mercy on ur SERVER..
neverthless keep timeout value say 24 * 60 min
--
Thanks and Regards,

Amit Agarwal
Software Programmer(.NET)
"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Does anybody know how to configure the session so that the session will
never expire?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.588 / Virus Database: 372 - Release Date: 2/13/2004
Nov 18 '05 #4
Sounds like a good recipe for a .Net "memory leak." That would be the
outcome.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi all,

Does anybody know how to configure the session so that the session will
never expire?

Nov 18 '05 #5

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

Similar topics

1
by: Leo | last post by:
hi all how can i terminate/stop an endless python loop which i have started inside emacs with C-c C-c. ta, leo
4
by: Derek | last post by:
I am trying to refresh one datagrid after updating another datagrid. I can not call BindData for one under the other bind sub because it creates an endless loops on page load. Is there way to...
3
by: rong.guo | last post by:
Hello group! I am having a problem with simplying my query... I would like to get customers' balance info based on how many months since they opened their accounts. The tricky part here is...
30
by: Skybuck Flying | last post by:
I was just trying to figure out how some C code worked... I needed to make a loop to test all possible values for a 16 bit word. Surprise Surprise... C sucks at it... once again :D lol... C is...
24
by: Tweaxor | last post by:
This has been puzzling me all this week. This is actually a homework assignment from last semesmter. But the teacher wouldn't tell us why certain things didn't work, but it didn't just work. My...
0
by: Bill Borg | last post by:
Hello all, Not sure I can describe this adequately, but I am creating an endless loop when an authenticated user signs out. When the user signs out, I want to remove authentication, abandon...
73
by: Claudio Grondi | last post by:
In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python gets trapped in an...
6
by: uche | last post by:
This function that I have implemented gives me an infinite loop. I am trying to produce a hexdum program, however, this function is not functioning correctly.....Please help. void...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...

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.