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

simple link question

Please don't look down on me for this, but it is something I have never
thought learning before.

Lets say you have protected pages.. and youhave script at the top that
directs the user to the login page if they are not logged on.
how can i have someone log in, and once they click the login button, they
get directed to the page they were trying to view in the first place?
For example, a user wants to view the standings.asp page.... but they are
not logged in, so the server directs them to the login page. after putting
the username and pw.. they click the login button, and i want them to go to
the standings.asp page.

if it was only this page, that would be easy.. but say there is 20 protected
pages on the site. i am thinking this has something to do with passing
variables to an asp page, but i am not sure.
Jeff
Jul 19 '05 #1
2 1142

in the page they try to view create a session variable ("target")

session("target")="standings.asp"

in the login pages Response.Redirect session("target")
Jul 19 '05 #2
They way that I have seen this done (using another scripting language) was using a combination of querystrings, case statements and sessions. I'll explain the basics of the functionaliy so it will
help you start in a in a direction.

Basically the default page held nothing but a huge set of case statements (holding variable names) and include files.

On the page there was a variable declared which held the variable name and that was appended to the querystring.

When the session timed out - it was redirected to the login page and the login page redirected to the referer page automatically upon login

Home this helps a little

- Bastard


On Wed, 28 Jul 2004 19:21:07 -0400, "Jeff" <gi****************@verizon.net> wrote:
Please don't look down on me for this, but it is something I have never
thought learning before.

Lets say you have protected pages.. and youhave script at the top that
directs the user to the login page if they are not logged on.
how can i have someone log in, and once they click the login button, they
get directed to the page they were trying to view in the first place?
For example, a user wants to view the standings.asp page.... but they are
not logged in, so the server directs them to the login page. after putting
the username and pw.. they click the login button, and i want them to go to
the standings.asp page.

if it was only this page, that would be easy.. but say there is 20 protected
pages on the site. i am thinking this has something to do with passing
variables to an asp page, but i am not sure.
Jeff


Jul 19 '05 #3

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

Similar topics

9
by: Leroy | last post by:
I really need some help with showing pages of results from queries in say like groups of 20 with next and previous buttons or links. I'm having a lot of trouble figuring out the logic of such a...
13
by: Samantha Smit | last post by:
Hi, I am trying to create a simple asp page that has one command button that updates a database. The URL of the page is like this: http://MyServer.com/Update.asp?UserName=Tom My asp code is...
13
by: Jason Swett | last post by:
I want to do graphics with C++. Surprisingly, so far nobody has been able to tell me anything helpful. How do I do it? Any input would be greatly appreciated. Jason
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
2
by: Ivan Demkovitch | last post by:
Hi! I'm trying to parse RSS news feed with code as simple as possible. Simple XML: <?xml version="1.0"?> <rss version="2.0"> <channel> <item>
5
by: Henrootje | last post by:
Probably a simple question to most of you but I have been googling, searching, trying, reading, swearing and cursing for two hours now.............. Can I (and if yes, how) open a folder on my...
6
by: Jim M | last post by:
I've been distributing a fairly mature, very specific MS Access application to end users in small offices of colleges for several years now. This is a part-time venture and low volume operation-...
1
by: Sallana | last post by:
Hello guys. My name is Lynne and I am currently trying to build a website for a game that I play online called Exodus. This is the page --> http://exodus.mudmagic.com Immediately you can...
1
by: Andrew | last post by:
I'm learning PHP so this might be a simple question to more expeienced developers hopefully. I have a findrecords.php page which has the following code which creates a new record in a database...
4
by: maheshgupta0248 | last post by:
Hi all, Im a newbie in php, started learning php on my own. I want to create small website using php, that contains links for two simple webpages > C questions > C++ questions C questions...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.