Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server -
it is a very busy website, and when users are click on certain links
(membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but
just opened in HTTPS (secure) mode - the user can now examine memberhip terms
and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and
used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the
current user ID in the URL string (as debug), and every single time the
window opens, an active a user ID is present - so when they click on the
link, they have a user ID - but when the window is opened, sometimes the
session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is
any pattern, but sadly there isn't ...
Can anyone help me, please ?
Regards,
Tony Fonager
Denmark 6 12941
Gazing into my crystal ball I observed "=?Utf-8?B?VG9ueSBHLg==?=" <Tony
G.@discussions.microsoft.com> writing in
news:2E**********************************@microsof t.com: Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the current user ID in the URL string (as debug), and every single time the window opens, an active a user ID is present - so when they click on the link, they have a user ID - but when the window is opened, sometimes the session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is any pattern, but sadly there isn't ...
Can anyone help me, please ?
I would suspect something to do with javascript. Have you tested it with
javascript turned off? Are you sure that the javascript is working on all
modern browsers? You might run into problems if you're doing something like
<a href="javascript :function()"> because javascript is not a valid URI
scheme, and some browsers, Opera for example, will not recognize it.
--
Adrienne Boswell http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Thanks for the answer!
I am pretty sure that it has NOTHING to do with the javascript open window
command, for several reasons. The only thing the javascript does, is to open
a new window - and this window IS actually being opened, in the cases where I
have problems, as my debugging begins AFTER the window has been opened and
loaded ...
If javascript is turned off, the window would not open at all, right ?
This is the javascript function :
var win = null;
function newWindowPayment(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top=' +
TopPosition+',left='+LeftPosition+',scrollbars='+s croll+',status=yes'
win = window.open(mypage,myname,settings)
if(win.window.focus)
{
win.window.focus();
}
}
My debugging tells me that it happens on very moderns browsers as well, that
is IE 6 and so forth ...
Regards,
Tony
"Adrienne" wrote: Gazing into my crystal ball I observed "=?Utf-8?B?VG9ueSBHLg==?=" <Tony G.@discussions.microsoft.com> writing in news:2E**********************************@microsof t.com:
Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the current user ID in the URL string (as debug), and every single time the window opens, an active a user ID is present - so when they click on the link, they have a user ID - but when the window is opened, sometimes the session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is any pattern, but sadly there isn't ...
Can anyone help me, please ?
I would suspect something to do with javascript. Have you tested it with javascript turned off? Are you sure that the javascript is working on all modern browsers? You might run into problems if you're doing something like <a href="javascript:function()"> because javascript is not a valid URI scheme, and some browsers, Opera for example, will not recognize it.
-- Adrienne Boswell http://www.cavalcade-of-coding.info Please respond to the group so others can share
As far as I recall it's *normal* to lose session state when switching
from http to https, since the browser sees these as different domains.
possible solution for you here: http://groups-beta.google.com/group/...1a5dcea55782d8
Tim.
"Tony G." <Tony G.@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com... Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the current user ID in the URL string (as debug), and every single time the window opens, an active a user ID is present - so when they click on the link, they have a user ID - but when the window is opened, sometimes the session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is any pattern, but sadly there isn't ...
Can anyone help me, please ?
Regards, Tony Fonager
Denmark
But if session is lost when changing from HTTP to HTTPS, this would happen
for all users, right ?
But it doesn't ... this only happens for 1%, maybe ... the rest 99% KEEPS
their session state, and continues buying their membership ... so this is a
bit strange ...
Regards,
Tony
"Tim Williams" wrote: As far as I recall it's *normal* to lose session state when switching from http to https, since the browser sees these as different domains.
possible solution for you here: http://groups-beta.google.com/group/...1a5dcea55782d8
Tim.
"Tony G." <Tony G.@discussions.microsoft.com> wrote in message news:2E**********************************@microsof t.com... Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the current user ID in the URL string (as debug), and every single time the window opens, an active a user ID is present - so when they click on the link, they have a user ID - but when the window is opened, sometimes the session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is any pattern, but sadly there isn't ...
Can anyone help me, please ?
Regards, Tony Fonager
Denmark
It could be a browser security setting or a "bug fix" in a browser version.
In the past, you could switch from http to https if the pages were in the
same virtual directory. I haven't tested this in a long time.
If could also be the generic "lost session in new browser window" (not
related to HTTP/HTTPS transition). See
here: http://www.aspfaq.com/show.asp?id=2172
Have you tried going to the HTTPS page in your main browser window instead
of a popup?
Our application depends heavily on sessions being available in popup windows
and we have not had any problems reported since IE4. However, if you are
experiencing enough problems to cause concern then you will probably be
better off using transfering data between your pages using a database or
hidden form fields.
--
Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"Tony G." <Tony G.@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com... But if session is lost when changing from HTTP to HTTPS, this would happen for all users, right ?
But it doesn't ... this only happens for 1%, maybe ... the rest 99% KEEPS their session state, and continues buying their membership ... so this is
a bit strange ...
Regards, Tony
"Tim Williams" wrote:
As far as I recall it's *normal* to lose session state when switching from http to https, since the browser sees these as different domains.
possible solution for you here: http://groups-beta.google.com/group/...1a5dcea55782d8 Tim.
"Tony G." <Tony G.@discussions.microsoft.com> wrote in message news:2E**********************************@microsof t.com... Hi there,
I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript.
This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
And this works fine, and hundreds of times each day this page i opened and used - but sometimes when a user opens this page, his session is lost ?!!?
On all links (in javascript) that opens this window, I have embedded the current user ID in the URL string (as debug), and every single time the window opens, an active a user ID is present - so when they click on the link, they have a user ID - but when the window is opened, sometimes the session is lost.
Any idea why this happens ? I have debugged and debugged to see if there is any pattern, but sadly there isn't ...
Can anyone help me, please ?
Regards, Tony Fonager
Denmark
That link was VERY interesting - I think I will try not relying on same
sessions being used, and recode the system.
Thanks alot!!
-
Regards,
TOny
"Mark Schupp" wrote: It could be a browser security setting or a "bug fix" in a browser version. In the past, you could switch from http to https if the pages were in the same virtual directory. I haven't tested this in a long time.
If could also be the generic "lost session in new browser window" (not related to HTTP/HTTPS transition). See here:http://www.aspfaq.com/show.asp?id=2172
Have you tried going to the HTTPS page in your main browser window instead of a popup?
Our application depends heavily on sessions being available in popup windows and we have not had any problems reported since IE4. However, if you are experiencing enough problems to cause concern then you will probably be better off using transfering data between your pages using a database or hidden form fields.
-- Mark Schupp Head of Development Integrity eLearning www.ielearning.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nick |
last post by:
hi there,
When I did the following steps the session in window A lost.
1.) authenticate user in window A and set $_SESSION="joe".
2.) open a new window B by clicking a button (in window A)...
|
by: vishal |
last post by:
i am running php script which creates session and stores some value in
session variables. then this file calls the another php script which
displays the values stored in session variables.
as...
|
by: Vetrivel |
last post by:
Application architecture : Develop interface between two existing
systems,
a. Enterprise CRM system
b. Web based intranet system.
Environment : Intranet
Server : IIS and ASP.
Script :...
|
by: James |
last post by:
Session("UserName") is set when someone logs in. Get to a page that
displays a record where you can type a comment. The form has an onSubmit
event that calls a javascript function. That function...
|
by: Ashish |
last post by:
Hi All,
I have a server runnable textbox control. I also have a server side button
object but I hook up javascript to it to show a modal dialog. Upon return it
places the value in the textbox...
| |
by: Nauck, Uwe |
last post by:
I would like to open, within a session, a new java script popup
window. Now I have the problem, that i lost the session in the new
popup window. Can you help me, to solve this problem? Thank you.
|
by: Stefan |
last post by:
Hello,
I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server.
The problem is that my application spawns a new window via javascript
once the user logs in.
The user logs in...
|
by: DigitalFusion |
last post by:
Hello All,
I have an app on an intranet which uses the response.contenttype in
ASP to create a word doc. The issue I am having is that when this doc
is generated and opened, the session is...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
| |
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...
|
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,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |