472,353 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

A basic session question - must have at every site.

I have a problem with closing a session and moving to the regular page.
The process is between 3 ASP pages:
(1)References.asp (2)SignIn1.asp (3)SignIn2.asp

the first page is a form that contains the references to the pages in the site. it contains the sign in button.
the action of the form redirects it to the second page which checks if the user is in the database and if the user is in database it redirects it to the third page and sets the session "SignedIn" to true.
the third page is a copy of the first page with few changes, such as the sign out button. the action of this page is redirecting it to the first page after the sign out button is pressed and sets the session "SignedIn" to false.
as you can see there is a loop between those three pages.

the problem is: when i click the sign out button in the third page it works good and redirects to the first page. but when i click on a reference after signing out, it redirects me to the third page again and shows that the user is signed in.

one more thing, in the first page there is a condition that checks if the user exists or not. if the user is not in the database it set's the session "SignedIn"
to false, and shows a massege. the "else" says that if user exists it set's the session "SignedIn" to true and redirects to the second page.
now to the point - when i press the sign out button it is working properly (but not if i press other references after signing out). now if i enter an invalid user name or password it shows me the massege. after that the problem is solved and the site is working normally. because of that i think the problem is in the session and that i need to learn how and where to close it.
Jun 19 '07 #1
2 1227
I'm sorry but I forgot to mention something at the original post.
I'm checking the session at every page in the site. I guess that only means that the problem is in the session and that it must be closed.
Jun 19 '07 #2
321 Expert 100+
Post the code for setting the session and checking the session. You can use session.Abandon to remove all session variables.
Jun 19 '07 #3

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

Similar topics

by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as...
by: qaz | last post by:
I've always used session cookies in my web sites. However, since more and more people (including me) are starting to disable cookies, I'm beginning...
by: MrShovel | last post by:
I'm new to this ASP.NET caper and have the following questions. I have a TestObject that contains about 50 fields of data and 3 member...
by: Li Pang | last post by:
Hi, I created a html page from which I give a link to another web site. The new site is opened in a new window. When I opened multiple windows,...
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow...
by: TheOld | last post by:
Server: Windwos 2000 IIS: 5 Hi, In my web application the user can't access from more pc in the site... Every user have a password that are...
by: TheOld | last post by:
Server: Windwos 2000 IIS: 5 Hi, In my web application the user can't access from more pc in the site... Every user have a password that are...
by: Alex | last post by:
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc,...
by: YYZ | last post by:
I'm using asp, not asp.net. I've got some open ended questions that I was really hoping someone in here could answer, or direct me to some...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.