473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can I retrive a session object by a session ID?

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
4 1782
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Goran | last post by:
I'm a student and I've just started to learn Visual Studio.NET. I have a project to make a web application. I have a problem to connect to the database and retriving the PassType of the...
2
by: Terry | last post by:
Any .dll or COM+ for .Net can help me retrive data from a Access file? The table contain several columns and the last one is a container which I store Article; because each article is a little bit...
0
by: babu | last post by:
Can Anybody help me about this issue, that how to retrive ole object(datatype) in MS Access database what variable i have to use to store data in VB.NET .The Format of the ole object stored like...
1
by: Santosh | last post by:
Dear All i am writting a code sending mail with attachement. i am writting code for sending mail in one page and code for attaching a file in the next page. aftet attaching a file i am taking...
2
by: Gian Paolo | last post by:
Hi all on .net 2.0 i have a dataset and a table with some rows. Is there a way to retrive the current row index ? So i can retrive other value of that column... something like...
3
by: poolieweb | last post by:
I have created a custom user control which creates a ASPxMenu ( Same fucntion as standard menu control) from data retreved from a webservice (Reporting Services) which deals with user access. This...
0
nehashri
by: nehashri | last post by:
hi, I need one help regarding Asp with MsAccess database. Problem. ======== i want to retrive stored image from the MSAccess database using asp.
3
vijcbe
by: vijcbe | last post by:
Hello PHP veterans, I am new to PHP. I tried to insert the session id of a user into the database table. code: $xyz = "insert into table_name values(' ', '$PHPSESSID', ...)"; The issue is,...
1
by: ganesh22 | last post by:
Hi, Here the below code is for dynamically creating textboxs, its creating fine but after user enters some values in textboxs how can i retrive that values? using System; using System.Data;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.