473,395 Members | 1,872 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,395 software developers and data experts.

How do I grab a session from the server by sessionID

Is it possible to grab a session object from the server for a given session ID?

I have two URLs that go to the same location... one secure and one not. I would like to pass the session over when the user goes from the first URL to the secure URL. However, since the cookie is not sent on the second URL the session is lost. However, I had thought that I could pragmatically pass the session id and establish the session again. Unfortunately, all the setting of the session in HTTPContext, Page etc. seems to be off limits to the programmer. Is there any way to get access this stuff to re-establish a session based on a sessionID?

One thought was to use cookieless sessions, but this is not an option in this case. I'd really just like to know how to set this stuff programatically.

Thanks, Shawn
Nov 18 '05 #1
1 1132
Anything you want shared betwen Sessions would have to go into some memory
space that is globally available to all Sessions, such as Application or
Application Cache, or a database.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Shawn" <an*******@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
Is it possible to grab a session object from the server for a given session ID?
I have two URLs that go to the same location... one secure and one not. I would like to pass the session over when the user goes from the first URL
to the secure URL. However, since the cookie is not sent on the second URL
the session is lost. However, I had thought that I could pragmatically pass
the session id and establish the session again. Unfortunately, all the
setting of the session in HTTPContext, Page etc. seems to be off limits to
the programmer. Is there any way to get access this stuff to re-establish a
session based on a sessionID?
One thought was to use cookieless sessions, but this is not an option in this case. I'd really just like to know how to set this stuff
programatically.
Thanks, Shawn

Nov 18 '05 #2

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

Similar topics

11
by: Sims | last post by:
Hi, I heard that there was a chance of 'loosing' a session ID between pages, (when the user clicks from one link to another). Is it really possible? Where could I find a definitive answer to...
5
by: Eugene Anthony | last post by:
In my login.asp I have the following code: <!--#include file="database_Function.asp"--> <% Dim sSessionID, sMessage If Len(Request.Form("cmdSubmit")) > 0 then mySQL = "EXECUTE...
7
by: Seth | last post by:
I have noticed that the id of my session object changes when I switch from a non-secure to a secure connection. What I'm trying to do: I have a cookie that is built on the non-secure side of...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
6
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
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
4
by: Malcolm Klotz | last post by:
Hello, I have a problem with ASP.Net: I have an ASP.Net application on a web farm, using SQL Server Session State Management, running on Windows 2000 (IIS 5) With session management on, a URL...
2
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...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...

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.