Link to home
Start Free TrialLog in
Avatar of kyo3eb
kyo3ebFlag for United States of America

asked on

Create a sessionless window off of a session window.

ok, there's a training page in the website that only logged in users can see, once a user logs in it stores information into session variables. Inside the training page there are links to other interfaces. My boss wants whoever's in the training page to be able to log into the other interfaces so that they can sample those interfaces, I've already created dummy accounts for those interfaces but, in order for the user to use the other interfaces he'd have to open another IE window (without using CTRL+N) and then log in. Is there a way to open a sessionless window off of a session window?
Avatar of Sleepyhead_NO
Sleepyhead_NO

open a new window using anchor tag and target="_blank" or window.open() with Javascript.

In the page that opens in the new window, include this at the top:
<%@ EnableSessionState=False %>

http://support.microsoft.com/default.aspx?scid=kb;EN-US;244465
Avatar of kyo3eb

ASKER

well, here's the problem:

I have 4 links (names of each interface) that redirect to the same page (the login page) but since the user is already logged in the page instead of asking for user name and password it automatically redirects them to their interface.

I need to recreate the same effect as if you're double clicking the IE shortcut on the desktop but from a web page that already has a session started.

for a temp fix, I'm opening a new window with each link with instructions on what to do. but I'd still like to know if this is possible or not.
ASKER CERTIFIED SOLUTION
Avatar of alorentz
alorentz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any progress?
if ur new application has different domains .. ie. even if the virtual directories r different, then it will create a new session for these applications .. but if r from the same domain, the session would be shared .. one way of doing what u require if the domains are same is to use session.abandon in ur code .. but this will abandon the session for the current application too ...
>>for a temp fix, I'm opening a new window with each link with instructions on what to do. but I'd still like to know if this is possible or not.

u could use this page to abandon the session and then redirect to the login page of the new applicaiton
Rejojohny - please read the question more carefully....the question is "Can a session be maintained in a new instance of IE, or some browser."  You're answer has nothing to do with that...
Avatar of kyo3eb

ASKER

Actually alorentz, it's the total oppsite. Here's what I need:

-User logs into site
-user clicks on a link
-New window opens with a new session started.....


hmm....


I could probably use client script to open a new instance of internet explorer, problem is:

-what  if their default browser is Netscape (yuk!!!) or opera (yuk!!) or something worse.
kyo3eb,
just as i said .. using client scripts u could open a new window . but then if the new window opens a page in the same domain, then the session would be maintained .. so when the new window opens .. u have to write in ur server script "session.abandon"  .. this will abandon the current session .. but then it will abandon the session of the parent window too ...
Yes, I know what you meant....and you cannot do that.  A session, as you know, is maintained throughout the existence of the session within the browser state.  

You can use session.abandon, like rejojohny stated.....but again, you will loose the entire session.

I guess I don't understand why you log in and then cancel the session.  Doesn't make sense.
Avatar of kyo3eb

ASKER

I'm not talking about logging in then canceling the session.

Let's say you open a window, you go to hotmail.com and you log in, you UNCHECK the "Sign me in automatically" checkbox and log in, if you go to your desktop and open the Internet explorer shortcut and go to hotmail again, it'll ask you to log in again preserving the 1st window session.

And that is EXACTLY what I'm looking for, I've always knew the session is passed onto child windows, I asked this question in case someone had figured out a way not to pass the session along child windows.

What I'm thinking of doing is use FileSystemObject to open their default browser, that's the same as doing it manually.
Well just to confirm your thought, it is not possible to open a sessionless window from a session window.  So, if you can get FSO to open the browser, or using shell script....that may work.

Good luck!
Avatar of kyo3eb

ASKER

well, since there's no solution to my request, what steps do I need to take, should I accept an answer or ask the moderator to close this question?
I have seen moderators say in the past that NO is a valid answer.  Meaning, there may not be a way to solve your problem, and the answer is "you can't", but this is still a correct answer.  And remember the Experts here put time in voluntarily...

So, you can accept that you cannot do it, and accept an answer, OR post message to community support to have them close it.

Good luck with whatever you choose.
>> I asked this question in case someone had figured out a way not to pass the session along child windows.
again i say .. use session.abandon .. have u tried it and if not what is the problem with that?
session.abandon will abondon the session all together. It will not create a new session for the new window, which is what he wants here. As alorentz states, you cannot do this using window.open(). You have to manually open a new internet explorer window or use a client-side active-x script to execute Internet Explorer - but that will require the client to allow that script to execute.
Bingo!
>>It will not create a new session for the new window
what do u mean by create a new session? when a session is abandoned, a new session is started from that point automatically ...
yes, correct, but that is irrelevant. As alorentz said, please read the question (and the other comments) more carefully.
Avatar of kyo3eb

ASKER

chose answer, I chose based on facts. hope all of you agree.
Glad to help...good luck!