Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

lstables

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    lstables got a reaction from morgano in help required with small php script   
    Add this to the top of the page
     

    <?php session_start(); ?>
     
    Also you could add this:
     

    <?php if (!isset($_SESSION["auth_username"])) { echo "You must be logged in to view this page"; exit; } else { echo ""; } ?>
     
    the auth_username you can change to auth_password but use this line of code too:
     
    To use logout, just create a form with a button instead like so:

    <form action="logout.php" method="post"> <input type="submit" name="sent" id="sent" value="Logout" /></form>
     
    then in the logout.php file you just put the following code:

    <?php session_start(); session_destroy(); header("Location: success.php"); //This is the location where you want the user to go after the session has been destroyed ?>
     
    Hope this helps

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.