[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

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?
0
kyo3eb
Asked:
kyo3eb
  • 8
  • 5
  • 5
  • +1
1 Solution
 
Sleepyhead_NOCommented:
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
0
 
kyo3ebAuthor Commented:
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.
0
 
alorentzCommented:
>>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.

Not possible, each instance of IE, or any browser, is independent of any existing sesssion.  Only way to do it will be with cookies, and then the new windows will look for cookies instead of session values.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
alorentzCommented:
Any progress?
0
 
RejojohnyCommented:
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 ...
0
 
RejojohnyCommented:
>>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
0
 
alorentzCommented:
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...
0
 
kyo3ebAuthor Commented:
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.
0
 
RejojohnyCommented:
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 ...
0
 
alorentzCommented:
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.
0
 
kyo3ebAuthor Commented:
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.
0
 
alorentzCommented:
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!
0
 
kyo3ebAuthor Commented:
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?
0
 
alorentzCommented:
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.
0
 
RejojohnyCommented:
>> 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?
0
 
Sleepyhead_NOCommented:
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.
0
 
alorentzCommented:
Bingo!
0
 
RejojohnyCommented:
>>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 ...
0
 
Sleepyhead_NOCommented:
yes, correct, but that is irrelevant. As alorentz said, please read the question (and the other comments) more carefully.
0
 
kyo3ebAuthor Commented:
chose answer, I chose based on facts. hope all of you agree.
0
 
alorentzCommented:
Glad to help...good luck!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 8
  • 5
  • 5
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now