473,487 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting HttpSessionState for SessionID

Is it possible to get an HttpSessionState object by its id.

http://www.alvas.net - Audio tools for C# and VB.Net developers
Jan 3 '08 #1
6 5393
It's not possible to access sessions that are not your own if that's what
you mean.

"Alexander Vasilevsky" <ma**@alvas.netwrote in message
news:fl***********@behemoth.volia.net...
Is it possible to get an HttpSessionState object by its id.

http://www.alvas.net - Audio tools for C# and VB.Net developers

Jan 3 '08 #2
If you store sessions in a database, you should be able to see the tables
where they are stored and to figure out how to access those tables.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Alexander Vasilevsky" <ma**@alvas.netwrote in message
news:fl***********@behemoth.volia.net...
Is it possible to get an HttpSessionState object by its id.

http://www.alvas.net - Audio tools for C# and VB.Net developers


Jan 3 '08 #3
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:-b******************************@bt.com...
It's not possible to access sessions that are not your own if that's what
you mean.
Unless you use SQL Server to store the sessions...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 3 '08 #4
I've never actually seen the data structures used when this is done. Is it
held in plain English and easy to read? Or is it all encrypted? Surely you
still can't session hi-jack though as it would be a security risk?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eu**************@TK2MSFTNGP04.phx.gbl...
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:-b******************************@bt.com...
>It's not possible to access sessions that are not your own if that's what
you mean.

Unless you use SQL Server to store the sessions...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 3 '08 #5
Hello Aidy,

just open the SQL Session scripts and u will find the structure

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
AI've never actually seen the data structures used when this is done.
AIs it held in plain English and easy to read? Or is it all
Aencrypted? Surely you still can't session hi-jack though as it would
Abe a security risk?
A>
A"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
Anews:eu**************@TK2MSFTNGP04.phx.gbl...
A>
>"Aidy" <ai**@xxnoemailxx.comwrote in message
news:-b******************************@bt.com...
>>It's not possible to access sessions that are not your own if that's
what you mean.
Unless you use SQL Server to store the sessions...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 3 '08 #6
"Aidy" <ai**@xxnoemailxx.comwrote in message
news:BY******************************@bt.com...
>>It's not possible to access sessions that are not your own if that's
what you mean.

Unless you use SQL Server to store the sessions...

Is it held in plain English and easy to read?
Yes.
Or is it all encrypted?
No.
Surely you still can't session hi-jack though as it would be a security
risk?
You can - Microsoft advising encrypting the <connectionStringssection of
web.config and also using integrated security in an attempt to make it
harder to access, but that's about it...
http://msdn2.microsoft.com/en-us/lib...01(VS.80).aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jan 3 '08 #7

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

Similar topics

7
2134
by: Christoph Pieper | last post by:
Hi, we've the following problem : We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day, but...
1
3312
by: Uglykid | last post by:
Is there any chance to get a HttpSessionState reference form it's SessionID. for example: step1.keep the SessionID in DB step2.to abandon the Session via the SessionID in DB! Regards!
5
3273
by: Mike | last post by:
I have the need to keep a substantial amount of session state, but I do not have the option of using the HttpSessionState object. My current scheme for dealing with this is to convert all the...
6
7647
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
4
535
by: Kenny | last post by:
Hi, I have created an ASPX Dim ss As HttpSessionState ss = HttpContext.Current.Session HttpContext.Current.Session("tesAt") = "testValue" Response.Write(ss.SessionID() & "|<br>")...
2
2517
by: ocean | last post by:
I want to get the session associated with the specific sissionID. I made a activex control required to login to the server.My idead as follow: 1.Get sessionID through IHTMLDocument2 interface(a COM...
6
1787
by: Ibrahim. | last post by:
When a new request is made to the server a new session id is issued to the client (a browser instance). The problem I’m facing is that session id that is already assigned to a browser instance...
4
587
by: David Thielen | last post by:
When I am in the Session_OnStart method, Is there a way to find another session based on it's SessionId? And can I then call Abandon on that other session? -- thanks - dave...
2
9839
by: KMG | last post by:
How do I get a sessionid? I have tried: Dim mySession as HTTPSessionState Dim sSessionID as String mySessionID = nothing sSessionID = nothing sSessionID = mySessionID.SessionID and I get the...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.