Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Session resurrection

Reply
Thread Tools

Session resurrection

 
 
nn
Guest
Posts: n/a
 
      10-18-2004
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 ::
 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      10-18-2004
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" <> wrote in message
news:cl0qmq$2t8e$...
> 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 ::



 
Reply With Quote
 
 
 
 
nn
Guest
Posts: n/a
 
      10-18-2004
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.
 
Reply With Quote
 
Marina
Guest
Posts: n/a
 
      10-18-2004
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" <> wrote in message
news:cl0scf$2u9v$...
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Last day! BLACK XMAS dvd, DTS TOMORROW NEVER DIES & ALIEN RESURRECTION lds J Rusnak DVD Video 0 11-19-2006 01:20 AM
FA: BLACK XMAS dvd, DTS TOMORROW NEVER DIES & ALIEN RESURRECTION lds J Rusnak DVD Video 0 11-13-2006 11:08 PM
iPod Resurrection Silverstrand Front Page News 0 05-17-2006 12:33 PM
Kazaa Lite Resurrection Sseadoubleyou Computer Support 0 02-22-2005 05:24 PM
Kazaa Lite Resurrection Norm Computer Support 15 10-09-2004 07:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57