Results 1 to 4 of 4

Thread: Login/logout/registrationpg/member pg

  1. #1
    Join Date
    Mar 2015
    Location
    Second Life
    Posts
    15
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Lightbulb Login/logout/registrationpg/member pg

    Is there anyway in making a:
    Login
    Logout
    Registration pg
    Member pg
    In javascript instead of usinf php -> mysql & -> db? Or does it have to be in php???

    If there is a javascript like it, please can anyone post the codes in this thread

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Not easily.

    PHP is executed on the server and the database needs to be there for a membership login to work, so the transactions are simple. Javascript is executed on the local client and would require some complex AJAX transactions to access a server-side database.

  3. The Following User Says Thank You to styxlawyer For This Useful Post:

    xhilaration (03-15-2015)

  4. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    It's quite easy with php (although a little harder to be done with a good level of security) and a database is not always required - you can do it with an encrypted flat file and sessions. However, standalone javascript is not the tool for a login system and can easily be circumvented by viewing the source of a web page.

    For starters you could try the Login Session script from this site http://www.myphpscripts.net/scripts.html I used it for a few projects in the past and it was nice and easy to setup and customise. From memory, it has member registration, login and logout included, and members pages can be setup manually using snippets from the tutorial I wrote here http://www.myphpscripts.net/tutorial.php?id=18
    And for added security, also use the tips here http://www.myphpscripts.net/tutorial.php?id=4

    If you want to try other/similar scripts, try searching Google for "flat file php login script" or "flat file php membership system" and play around with what you find.

    For a more complex solution, a database might be the way to go but it depends on your project.
    Last edited by Beverleyh; 03-15-2015 at 03:27 PM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. The Following User Says Thank You to Beverleyh For This Useful Post:

    xhilaration (03-15-2015)

  6. #4
    Join Date
    Mar 2015
    Location
    Second Life
    Posts
    15
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Great, thank you guys

    I understand now hehe

Similar Threads

  1. Resolved logout error
    By auriaks in forum PHP
    Replies: 2
    Last Post: 11-21-2009, 11:47 PM
  2. Logout Button
    By tomyknoker in forum PHP
    Replies: 5
    Last Post: 08-30-2007, 06:39 AM
  3. Logout help
    By InNeedofHelp in forum PHP
    Replies: 25
    Last Post: 07-21-2006, 08:17 PM
  4. Logout Code
    By colrcrzy in forum HTML
    Replies: 1
    Last Post: 06-28-2006, 07:59 PM
  5. Logout
    By pavmoxo in forum PHP
    Replies: 12
    Last Post: 04-19-2006, 06:26 AM

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
  •