473,396 Members | 1,996 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,396 software developers and data experts.

Popup window and authentication: URGENT Please!!

Hi all,
I am running asp.net on IIS 6.0 /IE 6.0 on Windows 2003 server.
I have form authenication and in Global.asax I have:
private void Global_AcquireRequestState(object sender,
System.EventArgs e)
{

if (Session["user_id"] == null)
{
if (!Request.Path.ToUpper().EndsWith("LOGIN.ASPX"))
{
string url =
string.Format(
// we build the whole link. Firstly, we get our host name
"http://" + Request.Headers["Host"] +
// then the path of the request
Request.ApplicationPath +
"/MainPage/Login.aspx"
);
Response.Redirect( url);
//omitted

When authenticated the session will have user_id value. This works
great on regular windows. But in Javascript popup windows fails -
about 10% of the the time I am redirected to the login page
again!!!!!!
Why?? it happens randomly about 10% of the time. If u try again, it
is working.
Thanks in advance!
Jenny -
Nov 18 '05 #1
0 983

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

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
2
by: DaaaDaaa | last post by:
Hi, I have a little popup window, that runs a query, then writes the query resultset back to parent window, sometime, this process could take some time, so, I'd like this little popup window to...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
0
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
2
by: jackson2005 | last post by:
OK, I need to do three different things. On the ONLOAD event I would like a popup box to open. In this popup box I need two text boxes. One for the UserName and one for the BillingTo name. ...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
3
by: chpadmamca | last post by:
Hi , I need this very urgent.please help me. I have to send a parameter on to the popup window which will open when a command button is clicked,again i need to display that parameter on the...
5
by: shalini166 | last post by:
Hi Anyone help me.I need a popup window when i click button. When i click button it show the popup window with employee code from database table. I used ASP.net(C#) with sqlserver
1
by: kharry | last post by:
Scenario: I am recording the test cases using Selenium IDE and later I have to modify them using ruby script. While logging in I am asked to enter the username/password which selenium doesnt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
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,...

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.