Redirects To Adminlogon

i have a session variable that is set to 1 when the admin logs in and on the admin page i have this code . Code:

<%If Session("admin") <> 1 then
response.redirect("adminlogin.asp")
end if
%>

but it redirects me back to adminlogon even if i put the right password in, what going on.

View Replies


ADVERTISEMENT

ASP Redirects

In using a page with IFrame, I woudl like to write a line like this:
If (certain criteria met) then
response.redirect(somepage.asp)
end if

Pretty simple, except that I would like to make it to the full page. In
other words, if it were a regular HTML hyperlink, the code would be
<a href=somepage.asp? target="_parent">

Is there a way to specify targets in ASP redirects?

View Replies View Related

ASP Redirects

Hey there. Is there any reason why redirects in my code would cause the error:

"Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."

If that is whats causing the problems? My code has been uploaded to

http://rafb.net/paste/results/NcOw3L40.html

instead of filling this post up.

View Replies View Related

Querystrings And Redirects

I currently have been using something like this:

Code:
response.redirect(request.querystring("page"))
It worked fine because I didn't need to pass on any other values from the querystrings. But now, I need something that will redirect the page and pass all querystring values. I tried this:


Code:
response.redirect(request.querystring("page") & "&" & request.querystring)
But it brings me to something like this:
http://www.site.com/thepage.asp&page%3D/thepage.asp&id%3D7
instead of what I would like for it to say:
http://www.site.com/thepage.asp&page=/thepage.asp&id=7

Now.... I know that I could have written:

Code:
response.redirect(request.querystring("page") & "&id=" & request.querystring("id"))
But that won't work because I actually have many querystrings and I won't know which ones are used, etc. I want it to just transfer all the querystring data.

Oh, and if the redirect could take out the "page" querystring.. that would be great. Because I don't need it.. it is only used to know what page to go to. I just need to keep all the other querystrings.

View Replies View Related

Redirects To Another Page

What would be the best way to build a little asp page that:

displays http://www.yahoo.com
waits for 45 seconds
displays http://www.google.com

loops forever

View Replies View Related

Redirects To Home.aspx.

I' currently making a time and movement site for our department.I would like for the user to use a login page,once they log in I want them to be directed to a personnal home page that allows to add and view their current week movements.How would I proceed
I built a login page, once the login is validated it redirects to home.aspx.
In the home aspx what would the coding for the home page to retreive the date related to the particular employee without having the employee to retypr his login information in a search form.

View Replies View Related

Framesets, Redirects, And URL Address

I have my entire ASP-driven site in a one-frame frameset to preserve a static URL in a browser's address bar. I also have a customized 404 page to redirect a visitor to the top, default frameset.

The redirect works, but the called, nonexistent URL remains in the browser's address bar. Is there any way to refresh a browser's address in the address bar to that of the site's default, frameset address? I tried using a window.location-type javascript, but the redirects get stuck in a perpetual loop.

View Replies View Related

Redirects And Closing Connection

If I use response.redirect, is the entire page read before the page is redirected?

For example, assume I have this code where the response.redirect is located before the objConn.Close line:

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "sampleDSN"

response.redirect("default.asp")

objConn.Close
Set objConn = nothing

Will the page redirect before the database is closed?

View Replies View Related

Redirects And Closing Connection

If I use response.redirect, is the entire page read before the page is redirected? For example, assume I have this code where the response.redirect is located before the objConn.Close line:

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "sampleDSN"

response.redirect("default.asp")

objConn.Close
Set objConn = nothing

Will the page be redirected before the database is closed?

View Replies View Related

Redirects To The Right Page Pasing Login Section

On allot of professional web sites, i have notised that When you are looking for something on the site and it needs you to login first
before you can see the content, when you do login it knows exactly where to take you before you loged in, how do they do this???
what type of code do they use??? i would love to apply it to my site.

View Replies View Related

Cross Domain Cookie Handling - No Redirects

Does anyone have a successful experience in using XMLHTTP or ASPtear to read
a cookie on another domain? Can it be done at all using these or similar
technologies or can it only be done using the redirect trick?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved