473,503 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session resurrection

nn
Hello

I have ASP.Net application configured to use cookies for session.
For some reasons I can't move to cookieless model.
I need access to session created in this application without cookie.
I tried pass session id through url (like in cookieless mode). But this
dosen't work. I know that this works in Java.while application is
configured in cookie mode.

How to do this in ASP.Net? How to access application session without
cookie, when we have only session id and application is configured in
cookie mode?
ps. I have one solution based on redirects and cookie creation based on
session id passed in query string. But this is a bit complicated :-|.
--
:: Ryszard Krakowiak ::
Nov 18 '05 #1
3 1753
If you started out cookiless - how do you know the sessionid? Are you going
in debugging on the server?

In any case, when you change the session state type, you are modifying
web.config, which means that the application is restarted and all current
sessions are dropped (which is fine, since you are changing how they are
processed anyway).

And why is it that you have this need to convert an application to start
accessing sessions without cookies in the middle all the time? Configure it
the way you want it, and then leave it alone.

"nn" <no****@nospam.pl> wrote in message
news:cl***********@news2.ipartners.pl...
Hello

I have ASP.Net application configured to use cookies for session.
For some reasons I can't move to cookieless model.
I need access to session created in this application without cookie.
I tried pass session id through url (like in cookieless mode). But this
dosen't work. I know that this works in Java.while application is
configured in cookie mode.

How to do this in ASP.Net? How to access application session without
cookie, when we have only session id and application is configured in
cookie mode?
ps. I have one solution based on redirects and cookie creation based on
session id passed in query string. But this is a bit complicated :-|.
--
:: Ryszard Krakowiak ::

Nov 18 '05 #2
nn
Marina wrote:
If you started out cookiless - how do you know the sessionid? Are you going
in debugging on the server? I'am starting in cookie mode and I'd like access session through session
id without cookies.
In any case, when you change the session state type, you are modifying
web.config, which means that the application is restarted and all current
sessions are dropped (which is fine, since you are changing how they are
processed anyway).

And why is it that you have this need to convert an application to start
accessing sessions without cookies in the middle all the time? Configure it
the way you want it, and then leave it alone.


My application is working in hosted IE control. Sometimes IE control
looses cookies (When I open new window from hosted IE control, sometimes
new window doesn't have session id in cookie).

I have web application written in java and in this environment I can
pass session id in java style to java web application configured in
cookie mode and I have access to correct session object. I'd like to do
the same in ASP.Net, but when I pass correct session id in ASP.Net style
to ASP.Net application I have access to NEW session object with
different session id.
Nov 18 '05 #3
But in this case, your asp.net app is either configured to use cookieless
sessions - or not. It's not like it can use regular session in the first
window, and then somehow use the cookieless version when the new window is
opened - it's either one or the other.

"nn" <no****@nospam.pl> wrote in message
news:cl***********@news2.ipartners.pl...
Marina wrote:
If you started out cookiless - how do you know the sessionid? Are you going in debugging on the server?

I'am starting in cookie mode and I'd like access session through session
id without cookies.

In any case, when you change the session state type, you are modifying
web.config, which means that the application is restarted and all current sessions are dropped (which is fine, since you are changing how they are
processed anyway).

And why is it that you have this need to convert an application to start
accessing sessions without cookies in the middle all the time? Configure it the way you want it, and then leave it alone.


My application is working in hosted IE control. Sometimes IE control
looses cookies (When I open new window from hosted IE control, sometimes
new window doesn't have session id in cookie).

I have web application written in java and in this environment I can
pass session id in java style to java web application configured in
cookie mode and I have access to correct session object. I'd like to do
the same in ASP.Net, but when I pass correct session id in ASP.Net style
to ASP.Net application I have access to NEW session object with
different session id.

Nov 18 '05 #4

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

Similar topics

1
7768
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
27
7085
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
2
3292
by: Damien | last post by:
Hi to all, I'm currently re-designing our intranet : nice and lean CSS2, cleaned-up PHP 4.3.7, better-normalized MySQL ;o). So I've started using the $_SESSION variable instead of register_globals...
13
23274
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 ...
0
3203
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
14
2346
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
7
3955
by: aroraamit81 | last post by:
Well Guys, Here is a very strange trouble. When more than one users request tto same page at the same time then our session gets conflicted. Moreover I printed my SessionID, strangely but true I...
1
2568
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...
5
2422
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
0
7280
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
7332
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...
1
6991
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
7462
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
4673
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...
0
3167
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
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
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.