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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
XMLHTTP Through Login But After Requesting Next Page - Kicks Back To Login
I am building a website to pull data from a remote https site using xmlhttp. The data from the https site is behind a login screen. I can successfully get through the login screen with: set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP") objXMLHTTP.Open "POST", "https://website.com/validate-login2.asp", false objXMLHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded" objXMLHTTP.Send "Username=uname&password=pwd&company=O" That works great - but then, when I try to go to the next page (where the data is that I want to pull) - I use the same process and I get kicked back out to the login screen? Could there be some cookies, referer, strings being passed normally that I am not including in my second request - How do i find out for sure? I have used the software IETrace and it looks like some cookies being passed, but how do I know for sure if (and what exactly) it is using?
Login To Page Requires Login
I want to login to a page using MSXML2.ServerXMLHTTP.4.0 or an object like this, I must send the form variables needed to login when I try to login to the page. But the problem is, that the page looks like a exe file (not a asp file or php file or what ever). The name of the page I try to login is something like "/pw?/session/login", nothing more, without extension. I have tried the code with a normal asp file with session registration and login process and it worked, but not with this file.
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?
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.
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.
My Login Page
I had just created a login page called login.asp and proc page login_proc.asp. I'm using MS Access for db. The prob is when I uploaded it into the web, a msg comes up saying 500 Internal Error and could not find login_proc. I have uploaded it dozens of times but it still comes out the same. When I test it in my local server, everything goes smoothly. Can nebody plz help? I'm running out of idea. I feel like jumping off the bridge rite now.
Login Page
I have a login page that Test's for the username and then tests for the password. If these test true then I redirect them to the member area. What I want to test for is if there is 1 user logged in with Session("test") = 1 and another user logs in with the credentials to set Session("Test") = 1 then the first session will terminate. The new user will then be able to navigate the member area.There will also be other user on with a Session("Test") = xxx where xxx is the Primary key of the validation table.
LOGIN Page
there was a simplistic way to store information from a login page. I already have the username and password saved in a table. I want to create a simple way to store the day and time of last login (perhaps a time stamp field in a table). Is that possible? If so, can someone help me with this? I will attach my current code from my login page.
Login Page
I've been reading alot recently on how to make up a login page. I got the form down right and i'm not sure how to get it online (mywebsite) and work properly. i know that you have to have a database of some sort too to check the login in values against but yet again i'm stuck on that.
Login Page
I am looking for some help creating a login page. I want to have a Access DB with the username/password/forward address. I want it to forward the user to there page depending on the username. I have seen many login pages but none that will forward to a web page depending on the username.
Login Page
I am creating my student website. I have completed with student registration parts (student enrolment form, personal details) but now my client requirement is that if any student come to my website , he/she needs to register first so if they log on next time , screen will comes up with their all details. I tried to create login page and if they are not in database , they can register on my website. But I could not able to create in my website. There might be more users so need to have loop in my code. Once user log in their name and password , it will search in database and if database found that record in it , that page will redirect to my website page which will comes up with perticular student information. project details : XHTML (Front End), Java Script (Validation), ASP (Connectivity), MS ACCESS (DATABASE).
ASP Login Page
I have existing login page that will check accounts table from my database if the user is allowed to log on to the system. I use session to save user variable. Every page that I will make, I always ask if the session where I save the user variable exist, and if not, it will redirect to login page. Is the the best way to control a web application using ASP. If not, can you give me your thoughts?
Login Page
I m doing login page . (login.asp)As usual it has usrename , password textbox and alogin button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
Login Page
i have to design a website that requires a login page.i have followed step from the marcomedia dreamweaver site, created a form, tx boxes and the submit botton,ODBC connection (database with user and pass), and the server behavour. thing is i need to add a server behavour,but i can only do this if the document type .asp. there is a link on my main page "Login" which is a href to the login page.(login.asp), the rest of the pages are HTML. when i click on my login my browser opens up the donwload window to download the login.asp file.
Login Page
I developed a login page and use Access as the database. When I test it using http://localhost, it works perfectly. When I upload it to the web server and click on the link, a file download box pops up asking me if I want to save or open the login.asp file. Why doesn't it work now?
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.
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.
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?
Admin Section
I have an access database on my website.Its tied in to an asp calendar page where people can click on a date and send me an email wanting to book that date. Could i sent a text message from my mobile to add a new date into my access database to book that date instead of having to go onto my admin section and add it in?what i trying to explain. Is this possible or impossible.
UnSubscription Section
I have implemented a subscription section which just inserts the fname, lname and email in the database which works fine and in the UnSubscribe section Which i have used the delete statement, but my problem is that i need to know how i can make it so when the subscriber types in the fname, lnam and email all three have to match the database fileds in order to delete. I am using access database.
Print Particular Section
i have two layers which i show and hide as per the users requirement...how do i give a link to print the contents of the layer only?
Create The 'Help' Section
So I am working with my IT department on a project. They have a large ASP/MSSQL db system for tracking multiple locations/projects, etc. The site has been an internal device for some time. We are trying to massage the system into a product to lease out. As a results, we are now having to develop manuals for setup, configuration, and most importatly - use. I need to develop a users manual for the system. I can fill in the blanks, but I don't want to make Word documents. I want the help to be online, seearchable, etc. I'd love to be able to tag sections as being for certain security levels so someone with high security would see ALL the stuff, someone with low security would only see the peices associated with what they have access to, etc. Is there anything out in the ASP (or even PHP) world that does this?
Cookies Within Login Page
Please need your help in writing the cookies code to enter the user automaticly to the comments page with out login if he entered before to the site... these are the code i wrote but now i need the cookies code to vlaideat if the user enterd before or not (if yes, redirect him to the comments page otherwoise let him login in)
Redirecting To A Page After Login
I want to be able to send users links to pages in my website. But if they arent logged in I want them to first be redirected to the login page and after they login automatically be redirected to the page i sent them in the link. How would i accomplish this.
Problem With ASP Login Page.
I created a Login User page with VBScript in Dreamweaver MX but whenever I preview the page I get the following error: Microsoft VBScript compilation error '800a0401' Expected end of statement /website/TMP2n38d8z06e.asp, line 24 MM_redirectLoginSuccess="customer_section.asp?id=<%=(rsCustomerLogin.Fields.It em("username").Value) (It's pointing to the beginning of "username.") Line 24 of my code is: MM_redirectLoginSuccess="customer_section.asp?id=<%=(rsCustomerLogin.Fields.It em("username").Value)%> What I'm doing here is trying to pass the corresponding record to the next page for the user that just logged in. If I don't pass the link parameters, I can preview the page and log in with no problems. So the problem only occurs when I try to set those link params. I noticed that the first quotation mark isn't closed, so I started placing quotation marks in that line trying to close it, but still get the error. I also noticed that under this line of code there was a quotation mark on a line by itself which I removed to see if that would help, but didn't. Code:
How To Use Login Name To Be Part Of Another Page?
I have a login page where i validate my user id and password... this part is done... I need to get the user id to the next page i am showing... Example like: ------------------------------- Login Page userid : abc pwd : XXXXX Authentication Successful --------------------------------- Next Page: Welcome abc ---> i want it here ---------------------------------- Anyone can show me how shld i do it...
Asp.net Standard Login Page
I've tried several users code, and everytime i try to do the redirect part it fails, this webpage at least gave me a confirm that it is the redirect part failing.
Check In ASP Login Page
I created this logon page that takes a user ID and password and logs in the user. The user Id is the email address of the person loging in. I also have the reset password option on my page. Here is bug on my page, even if the user's email address doesnt exist in the database as they have not requested access but because they know that the userID is email address they think that because they have email address they should be able to login and when they cant login and get message access denied they try and reset their password which works. I dont want the reset password option to work if the user has not been provided the access yet. Here is my login code can anyone tell me how to put a flag to check and see if the user's email address exist. Code:
Check Box In Login Page
How to provide remember me check box on login page in asp coding. So that user can be remembered by his local m/c if he wants. Any code support / link in this regard.
Secure Login Page
How can I secure the pages for login users in a "professional way"? I could set a global variable to true when a user successfully sign in but that's not how the experts do it right?
Highlight A Section Of Words Only
This code highlights words entirely. I look for the word nation it highlights words like abomination. So I only want the function to highlight whatever I'm looking for. Code:
Insert Section Break In RTF
I'm trying to merge two separate RTF files (created in Word) into one Word document. I'd like to put a "next page" section break between each document so that headers and footers can differ between sections. I've got the documents merging, but I can't seem to figure out how to insert the section break. Can anyone help?
Create Fixed Section
I am a C#-Coder and now I have the duty to rewrite a ASP-Website and add some functionality. The problem is that I have never seen ASP before and I don't have the time to learn everything necessary to complete my work. It's a very simple problem and would be really great if someone could tell me what to do or show me a small code-example. I think "learning by reading code" is the best way to get new information I have an ASP-Website with a very long list (out of a SQL-Query). If I scroll down the page I can't see the list-header any more <- THATs my problem. What I need is an ASP-Website with a fixed section that can't be moved and below a common, scrollable website. The header of my SQL-Query should be in this fixed section and the datasets should be in the scrollable section.
Login Page That Authenticates Against Ldap
I am learning asp and I want to create a page that will provide the user with a user name and password box from there it would authenticate them against my ldap (sun) or AD ldap servers ( I would prefer to use the sun ldap server but I can use either) from there if they are successfull they would get a special website, if they are not successfull they get an error. I have been reading for the past couple hours now about this and searching google and I just can't find a solid answer, I found some information on how to make a ldap edit page but not just a simple ldap authentication page. another question I have is how I can use this to then edit a database. for example after the user logs in they get a page that asks them a couple of questions. when they fill out there answers and hit submit I want it to get sent to a database but classified under there user id so I can run reports on provided what answers. Code:
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?
Not Showing Newsletter Section If Db Is Empty
I have a newsletter form with 8 article sections. The resulting newsletter displays the sections in a specific format. However, if the user only has 6 articles, how can I prevent section 7 and 8 from being dispalyed as blank sections?
Adding A Path Section To Sqlstring?
I can't work out how to add a path section to a sqlstring, at least i think that what i need to do. The image url in the database, is set a directory in from where the page sits, and displays for a shop. i.e. images/thumbs/you.gif However I would like to display this image on the homepage, i.e latest album from the shop, and have had it working but by adding 'store/' to the path in the database i.e. store/images/thumbs/you.gif, obviously problem with this is it knocks out the image in the store. So therefore I thought ok add the path needed manually to the homepage code, but I don't know how to put it in, or if to put it in the sql statement or add it to the variable where the image appears Code:
Page 2 - Login Stamp In Access Database
Unless you declared those session variables earlier, they have no data in them. Assuming this information is coming from a form, try using request.form("fieldname") instead of the session variables. If this doesn't address your problem, give more detail about what "isn't working"
How Can I Block A Folder Inside My Login Page?
I have a login page in ASP and I am trying to block a folder with pictures to make the unavailable to people who doesn't loged in to see them. How can I do to block this folder or put some kind script to allow only the pople who loged in to see them?
Create Login Page To Edit Access Database?
I have index.asp (Form) & process.asp (submit data from index.asp to Access Database), the Form is running Perfectly. But, How can I create a login name and page for the applicants to edit the information they submitted? Let say I have Email (username), Password (password) & lastname on index.asp, then I really have no clue!
How To Protect A File Upload Page With A Login Username Cookie?
I have downloaded a nice upload script from the internet, it works great, but I would like to have it protected,so that only the admin user can use this upload page, I'm getting the following error: Microsoft VBScript runtime error '800a01b6' Object doesn't support this property or method: 'Request.Session' If I change it in Request.Cookies, that won't work either.....
ASP Login
I have created a login and members page, and checked that it works, so that when you enter the correct username and password it logs you in. But how can I have it redirect the user to their own personal page? Because I don't want to have different users going to the same page, I want them each to have their own personal members page.
Login
I've created a site where the user can register and then log in. However if a user registers, the data is entered into the database, but they cannot log in. But a username i entered directly into the database still works when logging in. Does anyone have any ideas why this may happen?
Last Login
I get an error like this: Type mismatch: '[string: "UPDATE dbo.con_users"]' With the following query code: UPDATE dbo.con_users SET last_login = #" + nowDate + "# WHERE username = '" + Replace(userUSERNAME, "'", "''") + "' AND password = '" + Replace(userPASSWORD, "'", "''") + "'" I've successfully tested the variables in it (nowDate, userUSERNAME, userPASSWORD). What is the mismatch?
Login ..
I've already created a login page .. but how am i suppose to make sure that only those who login can access the member's areas and those who hasn't login will be redirected to login.asp ?? Is it possible to use cookies ???
Login
i am getting log in the application and woring with my some windows.now keeping that other window open and now from that main window i am logging out. so it throws me to the login page (as i am logged out). I am also clearing and abandoning the session. also with the FromsAuthentication.SignOut(). now with that login page i am relogging with other persons login ID. Now i am taking the other window which i had kept it aside and now refreshing it, it is showing me with the rights of the previous User. I want it to redirest to the login page as it was open by other user and now that user is not a vlid user as he has logged out.
ASP Login
Im new to ASP and im having trouble building a login script. I need an ASP login that reads the username and password from an XML page.
I Have A Login
i have a login page and a page that validates it, if you log in succesfully i want to to display the name of the user on the admin page e.g i want to have "welcome and then the name of the user" how can i do this?
|