SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot ameerulislam's Avatar
    Join Date
    Jul 2011
    Posts
    145
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    End of one session and Starting a new one?

    PHP Code:
    session_start();
    session_regenerate_id();
    session_destroy();
    unset(
    $_SESSION);
    session_start(); 
    or

    PHP Code:
    session_start();
    session_destroy();
    unset(
    $_SESSION);
    session_start(); 
    Are the above codes valid?

  2. #2
    SitePoint Addict bronze trophy
    Join Date
    Sep 2005
    Posts
    317
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    But do make sure you have session_start() at the top of every page that you wish to use sessions on.


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
  •