By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

Can I retrive a session object by a session ID?

P: n/a
Can I retrive a session object by a session ID which is stored in a cookie in
my server side code?
Jun 9 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
What is the context ? This is exactly what ASP.NET does already for you...

If you want to access data from another session, this is possible with the
SQL Server provider, AFAIK not possible with the inproc provider. In both
cases a possibly better solution is to consider that the data is not session
specific as you want anyway to access it from another session (i.e. it looks
like more something to be stored in an application wide list).

You may want to explain what you are trying to do for more accurate
suggestions...

- -

Patrice

"Toto" <To**@discussions.microsoft.com> a ťcrit dans le message de news:
52**********************************@microsoft.com...
Can I retrive a session object by a session ID which is stored in a cookie
in
my server side code?

Jun 9 '06 #2

P: n/a
Oh, thank you for your reply.
In fact, I want to use session to store some user information in the server
side (e.g. username and password). But I found out that data in a session
cannot be retrived while the broswer is restart. So I try to store the
session ID in a cookie and hope to retrive the server side session by the
session ID. I don't know if this is possible? Of course this can be done by
cookies. But the username and password must be encrypted or there is a risk.
So I think session in server side may be more safe.

"Patrice" wrote:
What is the context ? This is exactly what ASP.NET does already for you...

If you want to access data from another session, this is possible with the
SQL Server provider, AFAIK not possible with the inproc provider. In both
cases a possibly better solution is to consider that the data is not session
specific as you want anyway to access it from another session (i.e. it looks
like more something to be stored in an application wide list).

You may want to explain what you are trying to do for more accurate
suggestions...

- -

Patrice

"Toto" <To**@discussions.microsoft.com> a écrit dans le message de news:
52**********************************@microsoft.com...
Can I retrive a session object by a session ID which is stored in a cookie
in
my server side code?


Jun 10 '06 #3

P: n/a
Oh, thank you for your comments.
In fact, I want to use session to store some user information in the server
side (e.g. username and password). But I found out that data in a session
cannot be retrived while the broswer is restart. So I try to store the
session ID in a cookie and hope to retrive the server side session by the
session ID. I don't know if this is possible? Of course this can be done by
cookies. But the username and password must be encrypted or there is a risk.
So I think session in server side may be more safe.

"Patrice" wrote:
What is the context ? This is exactly what ASP.NET does already for you...

If you want to access data from another session, this is possible with the
SQL Server provider, AFAIK not possible with the inproc provider. In both
cases a possibly better solution is to consider that the data is not session
specific as you want anyway to access it from another session (i.e. it looks
like more something to be stored in an application wide list).

You may want to explain what you are trying to do for more accurate
suggestions...

- -

Patrice

"Toto" <To**@discussions.microsoft.com> a écrit dans le message de news:
52**********************************@microsoft.com...
Can I retrive a session object by a session ID which is stored in a cookie
in
my server side code?


Jun 10 '06 #4

P: n/a
Oh, thank you for your comments.
In fact, I want to use session to store some user information in the server
side (e.g. username and password). But I found out that data in a session
cannot be retrived while the broswer is restart. So I try to store the
session ID in a cookie and hope to retrive the server side session by the
session ID. I don't know if this is possible? Of course this can be done by
cookies. But the username and password must be encrypted or there is a risk.
So I think session in server side may be more safe.

"Patrice" wrote:
What is the context ? This is exactly what ASP.NET does already for you...

If you want to access data from another session, this is possible with the
SQL Server provider, AFAIK not possible with the inproc provider. In both
cases a possibly better solution is to consider that the data is not session
specific as you want anyway to access it from another session (i.e. it looks
like more something to be stored in an application wide list).

You may want to explain what you are trying to do for more accurate
suggestions...

- -

Patrice

"Toto" <To**@discussions.microsoft.com> a écrit dans le message de news:
52**********************************@microsoft.com...
Can I retrive a session object by a session ID which is stored in a cookie
in
my server side code?


Jun 10 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.