Login problem
I have login form.if the login is correct, it will go to the form which contain certain links.If we click on that link it will go to the particular url.The problem is,If we directly given to that url means it will go to the corresponding page.I want that if we directly given to that url means the page will redirect the login form.Please any one help me.
Status:
Open Mar 13, 2009 - 12:32 AM
forms, Links, login, url
2answers
Answers
Oct 06, 2009 - 09:29 AM
Yeah pretty simple bro just do some research on sessions in php
heres one i code
//Check to see if the session is still active
if(session_is_registered('username')){
//Session is valid load the page
echo "
WEB PAGE SOURCE
";
}
else{
//Session isn't valid take them back to login mwahaha
header( "Location: http://www.tirlco.com" );
}
Nov 27, 2009 - 05:17 AM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment![Sending...](https://quomon.com/images/loading-boxes.gif)