473,402 Members | 2,053 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,402 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 3289
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.