473,804 Members | 3,031 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 1766
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.ipart ners.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.ipart ners.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
7790
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION = ""; echo "<form method='POST' action='login.php'>
27
7135
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 a user from information you got from the session. Each secure app on a site must challenge the user for name and password, each and every time the user accesses it (not just once and then store it in the session). If a secure app is multi-page,...
2
3310
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 and a couple "better pratice" code. Not perfect, but better. Problem : I'm testing everything with Firefox on my machine (IIS on WinXP Pro), and everything is ok. As soon as I try MS IE 6, it doesn't seem to keep the sessions from page to...
13
23341
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 The problem I am having is that each time I reload the same PHP page, I get
0
3241
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 documentation it seems it should do it anyway any advice?
14
2383
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 User B has access to 5, now when both of us hits to the server at the same time then their session variables gets mixedup means either User A and USer B will have now 5 companies or both have 10 companies. Now again when User A hits to the server...
7
3972
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 got the exact same SessionID as of other users's. Well I guess nothing wrong with my code, do I need to set any property in Web.Config file??
1
2606
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
5
2440
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
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10308
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
10073
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
9134
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
5513
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
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.