Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 6 of 6
  1. #1

    Auto Login on Register

    Simple edit, that will automatically log the user in upon sign up, which will make user experience better, as they don't have to enter their details twice to play for the first time.

    Open up register.php, and at the top, below line 1, add;
    session_start();

    Now, find the following snippet; (Code Mucked Up?)


    and directly below it add; (Code Mucked Up?)


    If you get the following error; Cannot modify header information

    And that's it.

    -sniko
    Last edited by sniko; 02-17-2012 at 09:31 PM. Reason: Added fix to "Cannot modify header information"

    sniko.net (Blog posts, thoughts, dabbles.)
    Since there's really no such thing as perfect security, when we say that a system is "secure", what we are really saying is that it provides a sufficient level of security for our assets of interest against certain classes of threats - Cryptography Engineering by Niels Ferguson

  2. #2
    This will be really helpful.
    Also its really clean.



    Add me on:

    Skype: tpishz
    Gmail: tpishz95@gmail.com
    Hotmail: ishz-95@hotmail.com

    Check Out:

    Gangster City

    Success is a relative term.

  3. #3
    Really useful, thank you.
    I wish more people would implement this.

  4. #4
    i get this

    Warning: Cannot modify header information - headers already sent by (output started at /home/mobsters/public_html/register.php:218)
    in /home/mobsters/public_html/register.php on line 305

  5. #5
    Quote Originally Posted by Newbie View Post
    i get this

    Warning: Cannot modify header information - headers already sent by (output started at /home/mobsters/public_html/register.php:218)
    in /home/mobsters/public_html/register.php on line 305
    Updated original post!

    sniko.net (Blog posts, thoughts, dabbles.)
    Since there's really no such thing as perfect security, when we say that a system is "secure", what we are really saying is that it provides a sufficient level of security for our assets of interest against certain classes of threats - Cryptography Engineering by Niels Ferguson

  6. #6
    nice 1 sniko works perfectly now will be using this

    its good for making new players goto a help tutorial etc or a begginer guide

 

 

Similar Threads

  1. [ V2 ] Validation auto-login problems
    By gurpreet in forum Modification Support
    Replies: 9
    Last Post: 10-16-2011, 09:50 PM
  2. Replies: 11
    Last Post: 08-09-2011, 09:57 AM
  3. Request: Auto Login upon account creation
    By Lilith in forum Requests & In Production
    Replies: 22
    Last Post: 01-16-2011, 06:26 PM
  4. Request: Auto-Login
    By Sim in forum Bug & Feature request
    Replies: 2
    Last Post: 01-10-2011, 11:42 PM
  5. FlashChat 4.7 Auto Login?
    By chaoswar4u in forum General Discussion
    Replies: 8
    Last Post: 07-12-2009, 02:16 PM

Tags for this Thread

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
  •