yes, agreed and to send the user to the same web page which was requested,
create a session variable and store the URL , if login succeeds ....send the
user to the requested url ..else to the signup or login page!!

On Tue, Jun 21, 2011 at 10:48 PM, kapil jain <[email protected]> wrote:

>
>
> On Mon, Jun 20, 2011 at 3:12 PM, Aamir Khan <[email protected]> wrote:
>
>>      I have a website with some pages and simple login mechanism.....some
>> of the pages are private and some of them are public...If user wants to
>> access private page, i want the user directed to login page with some
>> additional parameters using which after logging of the user will proceed to
>> the page he requested first...i mean i don't want to show the home page
>> after user logged in but the page user requested first while he was not
>> logged in..
>>
>>   To make it simple...if you give some message address of your gmail and
>> you are not logged in then it redirects you to login page but after you log
>> in it servers the page (message in this case) rather than showing you your
>> inbox.
>>
>>   In many professional websites the behavior i explained is pretty much
>> common and i want to know the best way to implement it.
>>
> create a session when a user logs in and put a session validation check
> script at very top of all secure pages.
> invalidate the session when user logs out
>
>>
>> --
>> Aamir Khan
>> Indian Institute of Technology Roorkee,
>> Roorkee, Uttarakhand,
>> India , 247667
>> Phone: +91 9557647357
>> email:   [email protected]
>>             [email protected]
>>
>>
>>  --
>> Mailing list guidelines and other related articles:
>> http://lug-iitd.org/Footer
>>
>
>
>
> --
> ___________________________________
>
> Kapil Kumar Jain
> Software Engineer
> Novell Software Development(India) Pvt. Ltd.
>
>
>  --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>



-- 
Regards
Biplob Biswas
Jamia Millia Islamia

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to