SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to check user is login first time in php

    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.

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,412
    Mentioned
    149 Post(s)
    Tagged
    4 Thread(s)
    You might use a cookie, but if the user deletes the cookies, then next time would be his first time again.
    A better idea might be to have a field in your user table, which indicates if the 'first time' screen has already been shown to that user. If not, show it and update the field value for that user.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •