how to check user is login first time in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
irshad_sheikh
Forum Newbie
Posts: 7
Joined: Mon Jan 19, 2009 1:57 am

how to check user is login first time in php

Post by irshad_sheikh »

Hello

how can I check, user is logged in first time since I have to display the different page when its logged in first time.
If you have any suggestion please help me.

Thank you.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how to check user is login first time in php

Post by Christopher »

Add a field to the user database table that indicates whether they have logged in previously. If they have not, show the different page and UPDATE their record to indicate they have logged in once.
(#10850)
Post Reply