Hi There,
I am using PHP as my Scripting language and Apache as the server.
Basically i have been given an assignment but i am unable to come up with an apt solution for it. Can someone just guide me as to from where should i start.
I have a site wheren in the users logs in and when they do so a session variable is created and the user id is stored in it. Now there are certain pages from where the user receives a mail from the site linking to the site.
Now when the user reads this mail and clicks on the link in the mail it opens the respective page on the site.
Now what i want to do is I want to check whether the user is already logged in. If he is logged in it should refresh the site with new details. If he is not logged in it should Open a new window asking him to log in and when he does that it should display the link that has been sent to him as a mail.
Sounds confusing huh?
Can some one help me?
I am using PHP as my Scripting language and Apache as the server.
Basically i have been given an assignment but i am unable to come up with an apt solution for it. Can someone just guide me as to from where should i start.
I have a site wheren in the users logs in and when they do so a session variable is created and the user id is stored in it. Now there are certain pages from where the user receives a mail from the site linking to the site.
Now when the user reads this mail and clicks on the link in the mail it opens the respective page on the site.
Now what i want to do is I want to check whether the user is already logged in. If he is logged in it should refresh the site with new details. If he is not logged in it should Open a new window asking him to log in and when he does that it should display the link that has been sent to him as a mail.
Sounds confusing huh?
Can some one help me?