Last post Mar 22, 2018 07:31 AM by simonbor
Apr 03, 2006 11:09 PM|devnull|LINK
Jun 08, 2006 02: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 03:34 AM|devnull|LINK
Jun 08, 2006 12: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 01: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 01:23 PM|ASPXGURU|LINK
Jun 08, 2006 07:17 PM|devnull|LINK
Mar 22, 2018 07:31 AM|simonbor|LINK
I understand that it's been a long time since you post this great solution but i need to implement a ASPState SSO in one from our's old system.
Is there any chance you find the ServerSideSessionExample.zip which is not accessible any more at http://www.dsrazor.co.nz domain?
Thanks a lot!