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

My session-object dies way to early

Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll
Nov 18 '05 #1
6 1455
take a look in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G\machine.config at
sessionState tag and look at attribute timeout to see how many minutes is set
there.

hope helps
Cheers

"Mr m?ll" wrote:
Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll

Nov 18 '05 #2
if you are having problem with sql connection then you should change your
connectiontimeout on command and set to this a longer timeout. I think it is
set to 5 min.

"Mr m?ll" wrote:
Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll

Nov 18 '05 #3
if this still doesn't work i found that there is another option which can be
set to make your session longer.
In IIS on your web application right click properties
on virtual directory tab click configuration button
here on option tab set your session timeout.

"Mr m?ll" wrote:
Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll

Nov 18 '05 #4

Hi,

I guess that you use forms authentication. Do you have a timeout defined for
forms authentication on the web.config? The problem can be as follows; if the
forms authentication cookie expires (assuming you have a nonpersistent
cookie), the session will be lost although it did not expire yet.

Btw, in my tests, I see that when you put a session timeout on the IIS level
and when you also define it on web.config on session state, then the setting
on web.config overwrites the IIS setting.

"Mr m?ll" wrote:
Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll

Nov 18 '05 #5

Hi,

I guess that you use forms authentication. Do you have a timeout defined for
forms authentication on the web.config? The problem can be as follows; if the
forms authentication cookie expires (assuming you have a nonpersistent
cookie), the session will be lost although it did not expire yet.

Btw, in my tests, I see that when you put a session timeout on the IIS level
and when you also define it on web.config on session state, then the setting
on web.config overwrites the IIS setting.

Hope this helps,

Ethem

"Mr m?ll" wrote:
Hi
Im quite new to web programming and I'm buildning this ASP .net page.

I use VS 2003 and C# + IIS 5. The page consists of a login page that
leads to a frame page (with some pages, reading from a MSDE-database)

In the projects web.config-file I have
sessionState mode="InProc"
cookieless="true"
timeout="40"

But all I get is a few lousy minutes before my Session-object dies.
What am I doing wrong ?

/Thanks in advance, Möll

Nov 18 '05 #6
Thanks guys!

Sorry for not answering your posts earlier haven't been home...
anyway. I tried some of the things you suggested and now I have my
40 mins for the session-object (can't really say what did it though ... )

Best regards, Möll
Nov 18 '05 #7

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

Similar topics

2
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
7
by: aroraamit81 | last post by:
Well Guys, Here is a very strange trouble. When more than one users request tto same page at the same time then our session gets conflicted. Moreover I printed my SessionID, strangely but true I...
0
by: TRB_NV | last post by:
I'd been using an Access database based shopping cart, but wanted to change it so that it would use session variables. I have a form that's submitted to a page called addtocart.asp that contains...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
3
by: mikeboston | last post by:
Hi, I am attempting to use php session variables on a server which is running Red Hat Linux, but the variables don't seem to be getting passed between pages. I have tried the same exact test...
1
by: KidQuin | last post by:
I am having problems with session value between pages. Happening in both firefox and IE7. I go between page by links so I know it's not header changes. I use session_start as the first line on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.