473,715 Members | 5,945 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1806
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**@discussio ns.microsoft.co m> a écrit dans le message de news:
52************* *************** **...icrosof t.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**@discussio ns.microsoft.co m> a écrit dans le message de news:
52************* *************** **...icrosof t.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**@discussio ns.microsoft.co m> a écrit dans le message de news:
52************* *************** **...icrosof t.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**@discussio ns.microsoft.co m> a écrit dans le message de news:
52************* *************** **...icrosof t.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
2143
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 tblEmployee. First I create Bussines Object user.vb and I declare in it: Public Class EmployeeDetails Public EmpIdNo As Integer Public Name As String
2
1611
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 huge, so when I store it, it ask me if I want to pack it (the article) into a object then I click 'Yes'. But now I need to retrive data from the file and show it by datagrid, and now I don't know what kind of data type it is (when I click it, it...
0
1253
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 this in the database(x,y*x1,y1*x2,y2*............)these are the coordinates i want to retrive from the database. thanks .
1
2600
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 name of that file from attaching file page to email page through in session file .i am giving a facility of attaching five files to user . and i am taking names of both files in session variables but user attach less than five five
2
2127
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 dataset.table.columnname.value regards paolo
3
3059
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 process is slow. And as the menu object will not change in a session I am trying to cache the menu with the session user as the key. The problem is that I can not retreve the menu object after the first request. The menu items are resident in the...
0
1609
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
2790
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, when I check the session id value in mysql, I could find the word $PHPSESSID instead of having the 32 lettered session id. I tried removing the quotes and it wasn't fruitful. I am expecting a solution from you guys, to resolve this issue.
1
1647
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; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls;
0
9196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9103
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7973
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5967
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
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 we have to send another system
2
2539
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2118
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.