Re: session data missing
- From: Nedim <Nedim@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 25 Oct 2007 04:58:00 -0700
well so far i couldn't see any pattern. i use forms authentification, below
is the web.config snippet. i receive notification when obj ref exception
occurs, but it doesnt help much. the only place where session data is being
written is after the login, when i put all the data regarding the logged on
user in a session object. after that i retrieve that data with
object UserData = System.Web.HttpContext.Current.Session["UserData"];
web.config:
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="Login.aspx"
defaultUrl="forme/home/Default.aspx" protection="All" timeout="60"
path="/"></forms>
</authentication>
and this it the code that creates the object in session (which we use later
on as static property, Korisnik is the name of the class in app_code)
public static Korisnik Trenutni
{
get
{
object oKorisnik =
System.Web.HttpContext.Current.Session["korisnik"];
if (oKorisnik != null)
return ((Korisnik)oKorisnik);
else
return null;
}
}
"Mark Rae [MVP]" wrote:
"Nedim" <Nedim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:32388E87-99E4-401A-B6F5-9C5D3AC22215@xxxxxxxxxxxxxxxx
Do you have any code which tears down a user's session by calling
Session.Abandon(), maybe when a user logs out...? Could this be being
called
unexpectedly...?
No, there is no sign out code at all, as i have very stupid users, and
they
exit via closing the browser (or just shutting down the computer).
Starting to run out of ideas now...
Do you have any code at all which removes and/or modifies Session variables?
Are you using Forms Authentication?
Do you receive a notification of every error?
Can you discern any pattern to this?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
- Follow-Ups:
- Re: session data missing
- From: Mark Rae [MVP]
- Re: session data missing
- References:
- Re: session data missing
- From: Mark Rae [MVP]
- Re: session data missing
- From: Mark Rae [MVP]
- Re: session data missing
- From: Nedim
- Re: session data missing
- From: Mark Rae [MVP]
- Re: session data missing
- Prev by Date: come on,come on!!!!hot sell air force ones sneakers,air jordans sneakers,air max sneakers
- Next by Date: Re: Obtain real IP address of client
- Previous by thread: Re: session data missing
- Next by thread: Re: session data missing
- Index(es):
Relevant Pages
|