473,216 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,216 software developers and data experts.

Help - how to have email URL link start new session?

In our .NET 1.1 ASP.NET application, I'm noticing some behavior that I
would like to change. If I open a web browser and manually copy and
paste a URL, then I get a new session ID (I check it by entering
javascript:document.cookie in the URL field to get the cookies for the
page). However, if I instead click on the same URL in an email link,
the browser that is opened will reuse the session ID if another browser
is already open to the application. Instead, I would like the click on
the URL to allow any existing session to remain but force a new session
for the newly opened browser. Is there anything I can setup in my
application to force this? In stepping through the code, I've noticed
that the Session_start event of the Global.asax is not fired when
clicking the URL in the email - in the web.config we have setting of
cookieless as false, and it needs to stay that way (I think the
SessionID resulting from the email URL click is pulled from the
cookie).

If anyone has suggestions on how to force the email URL click to create
a new session without closing any existing session, I would really
appreciate it.

Thanks in advance.

Dec 1 '06 #1
4 3283
Thanks for the reply, but I wouldn't have thought that if I have
Browser A logged in to an application, clicking a link in an email
within Outlook or a webmail in Browser B would consider Browser A a
'parent'. Also, I can't guarantee that the user will have IE on their
system, so forcing it to execute IE wouldn't be an option.
Eeraj wrote:
This is a bit tricky. Pop-ups will share the same session as the parent
window since they are in the same process space. I have not tested it, but
you may have to use a shell command from javascript in the parent window to
start a new internet explorer window in a separate process which will
generate a new session.

Depending on the security settings on the user's machine this may or may not
work.

Something on the lines of:

<SCRIPT LANGUAGE="JavaScript">
function openIE(var url)
{
var oShell = new ActiveXObject("Shell.Application");

var iePath = "iexplore.exe";

oShell.ShellExecute(iePath, url,....... );
}
</SCRIPT>

<untested code/>

Search for javascript shellexecute on google

- eeraj
=====
Dec 1 '06 #2
I have a link within an email that provides a URL to log in to our
application (the URL includes authentication information). Clicking on
that link in the email results in a new browser being opened. If the
user is already logged in to the application in an existing browser,
this newly opened browser reuses the session; instead, I want to force
the creation a new session and still leave the existing session active.

I have found that if instead of clicking on a link within the email if
I instead open up a new browser and paste the URL, a new session is
created.

What I'm trying to figure out is how I can have the click on the link
in the email result in creating a new session in the same way that
manually opening a new browser and pasting/typing in the URL does.

Thanks
Eeraj wrote:
I am not quite clear what your scenario is -

Are you talking about opening pop-ups or opening outlook by clicking on a
mailto: link in a browser and populating outlook's body with some formatted
HTML that contains a link which when clicked opens a browser window that
shares the same session with the original IE window.
Dec 1 '06 #3
I have the very same need. Users have the URL in an email. They want to
click on that URL in a new IE session. Currently, if the user has an IE
window open and they click on the URL, then the URL will display in the IE
window that is already open. I ned the URL to display in a new IE session so
that users would have two IE windows open.

Did you find a solution? If so, please post! Thanks!

"Nanker" wrote:
In our .NET 1.1 ASP.NET application, I'm noticing some behavior that I
would like to change. If I open a web browser and manually copy and
paste a URL, then I get a new session ID (I check it by entering
javascript:document.cookie in the URL field to get the cookies for the
page). However, if I instead click on the same URL in an email link,
the browser that is opened will reuse the session ID if another browser
is already open to the application. Instead, I would like the click on
the URL to allow any existing session to remain but force a new session
for the newly opened browser. Is there anything I can setup in my
application to force this? In stepping through the code, I've noticed
that the Session_start event of the Global.asax is not fired when
clicking the URL in the email - in the web.config we have setting of
cookieless as false, and it needs to stay that way (I think the
SessionID resulting from the email URL click is pulled from the
cookie).

If anyone has suggestions on how to force the email URL click to create
a new session without closing any existing session, I would really
appreciate it.

Thanks in advance.

Jan 13 '07 #4
Try adding Target=_new

Regards,
Brian K. Williams

"Lynda" <Ly***@discussions.microsoft.comwrote in message
news:AE**********************************@microsof t.com...
>I have the very same need. Users have the URL in an email. They want to
click on that URL in a new IE session. Currently, if the user has an IE
window open and they click on the URL, then the URL will display in the IE
window that is already open. I ned the URL to display in a new IE session
so
that users would have two IE windows open.

Did you find a solution? If so, please post! Thanks!

"Nanker" wrote:
>In our .NET 1.1 ASP.NET application, I'm noticing some behavior that I
would like to change. If I open a web browser and manually copy and
paste a URL, then I get a new session ID (I check it by entering
javascript:document.cookie in the URL field to get the cookies for the
page). However, if I instead click on the same URL in an email link,
the browser that is opened will reuse the session ID if another browser
is already open to the application. Instead, I would like the click on
the URL to allow any existing session to remain but force a new session
for the newly opened browser. Is there anything I can setup in my
application to force this? In stepping through the code, I've noticed
that the Session_start event of the Global.asax is not fired when
clicking the URL in the email - in the web.config we have setting of
cookieless as false, and it needs to stay that way (I think the
SessionID resulting from the email URL click is pulled from the
cookie).

If anyone has suggestions on how to force the email URL click to create
a new session without closing any existing session, I would really
appreciate it.

Thanks in advance.


Jan 15 '07 #5

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

Similar topics

7
by: redneck_kiwi | last post by:
Need some opinions on how best to display in excess of 14K records based on users search criteria. Application Concept: ----------------------- User enters various search criteria (as many...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: StevenChiasson | last post by:
For the record, not a student, just someone attempting to learn C++. Anyway, the problem I'm having right now is the member function detAddress, of object controller. This is more or less, your...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.