Shadow Documentation
  • Getting Started
    • Installation
    • Configuration
    • Directory Structure
  • The Basics
    • Routing
    • Middleware
    • CSRF Protection
    • Controllers
    • Requests
    • Responses
    • Views
    • URL Generation
    • Session
    • Validation
    • Error Handling
    • Logging
  • Frontend
    • Raze Templates
  • Security
    • Authentication
    • Encryption
    • Hashing
  • Digging Deeper
    • Kapitan Console
    • Mail
    • Queues
  • Razer ORM
    • Getting Started
    • Mail
    • Queues
  1. Home
  2. Getting Started
  3. Sessions
Free Download

Sessions

  • Retrieving Data
  • Retrieving All Session Data
  • Determining If An Item Exists In The Session
  • Storing Data
  • Deleting Data

Retrieving Data

$_SESSION['user_id']

Retrieving All Session Data

$_SESSION

Determining If An Item Exists In The Session

if (isset($_SESSION['user_id'])

Storing Data

$_SESSION['user_id'] = $user->id;

Deleting Data

unset($_SESSION['user_id']);

Looking for help? Join Community

Couldn’t find what your are looking for ? Why not join out support forums and let us help you.

Support Forum