473,396 Members | 1,853 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.

My tough question

Hi,
I have to develop a web app for registration of persons for a particular training.

Before entering into the registration form, a login form have to be made.

No problem in doing both.

But after successful login, and after reaching registration form , if the user hits BACK button in internet explorer( or any browser ), it should not go back to login form. Is it possible to do so ?
or someother alternative should be made... ?

I hope u understand my question to some extent.
please reply
Aug 16 '07 #1
1 1094
Hi,
I have to develop a web app for registration of persons for a particular training.

Before entering into the registration form, a login form have to be made.

No problem in doing both.

But after successful login, and after reaching registration form , if the user hits BACK button in internet explorer( or any browser ), it should not go back to login form. Is it possible to do so ?
or someother alternative should be made... ?

I hope u understand my question to some extent.
please reply

I am assuming you are using session vars for your login. If so, you probably have a session variable called 'username' or something similar:

Session("username")=Request.Form("txtUserName")

Then on the login page, do a check for the existence of this session variable. If it exists, the user is already signed in, so redirect him to the page of your choosing. Otherwise, display the login form

Something like:

if ( IsObject(Session("username")) )
// redirect to page of choosing
else
// display login form





on the login page, simply check to see if
Aug 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Gary | last post by:
Hello guys! Bear with me,I am newbie. I am trying to limit the privileges of the user PUBLIC has as toughly as possible which means I want to go as far as I can then leave those MUST-HAVE...
198
by: Sy Borg | last post by:
Hello: We are designing two multi-user client server applications that performs large number of transactions on database servers. On an average Application A has a 50% mix of select and...
13
by: Elaine | last post by:
This has to do with self-joins and includes a running balance problem. Is it possible to do this using SQL alone? Amortization schedule -------------------------- Givens: beginning balance,...
6
by: Kennedy_f | last post by:
I did better in terms of score on this one than 291, but I found it much harder. Wordings of questions are difficult like the rest, but the DNS and CA scenarios were very tough to figure out. Take...
9
by: denis | last post by:
Hi there, I got a tough interview questions lately, and I would like to hear your opinion: An array of N chars is given Write an efficient algorithm to find all the repeating substring with a ...
0
by: asterisk | last post by:
Hi, I am already mad for charset issue, please help me clear it. My question here is, I want to retrieve fields from Sql server database, whose collation is Latin, but the content of field is...
16
by: Mr Shore | last post by:
hi all what I want to do is as below start a function halt on, until some event occurs(maybe user click) and then return some value accordingly. Or is it possible to do this stuff?
12
by: Mr Shore | last post by:
how to do the follows in IE: there's page A with element a pop a new page B from script in A and append element a into B after closing page B put element a back into A 'IE' solution only
4
by: Jim Rutledge | last post by:
ok ok , anyone know anything on this tough question? How do you determine the length in seconds that a midi file is , or any audio file for that matter ?
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.