Last post Jun 08, 2006 11:17 PM by devnull
Apr 04, 2006 03:09 AM|devnull|LINK
Jun 08, 2006 06:46 AM|ASPXGURU|LINK
I believe this code can help solve a problem i have been working on for a while.
unfortunately because i need to store my session state in SQL i get no session_end event. well i need a sesion end event to support the visitor tracking code that i am working on so i am thinking that if i create my own check for expired sessions i can run
my code against any sessions that have expired.
i just need to get access to the session data/objects. i am not really proficient with C# so i left this code in C# and compiled it into a dll and i am referencing it in my project. unfortunately i dont really know how to call it and what data its expecting
to get. i see the constructor takes a sessionid and a byte array but i dont really know what its expecting. my attempts so far have failed to get any results.
could you offer any advice?
Jun 08, 2006 07:34 AM|devnull|LINK
Jun 08, 2006 04:50 PM|ASPXGURU|LINK
Got the working sample up however getting this error. any idea what i am doing wrong?
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at Session.DecodeStateItems(BinaryReader br) in C:\Develop\ReadSessionData\Session\Session.cs:line 69
Jun 08, 2006 05:12 PM|ASPXGURU|LINK
Got past my error but i am not getting any results. here is the code that i am using:
Dim Strsql As
String = "select sessionid, isnull(SessionItemShort,SessionItemLong) SessionItem from aspstate.dbo.ASPStateTempSessions"
it seems that in this piece of code:
state is always false?
Jun 08, 2006 05:23 PM|ASPXGURU|LINK
Jun 08, 2006 11:17 PM|devnull|LINK