Session Handling From Scratch

后端 未结 3 1004
余生分开走
余生分开走 2021-02-06 19:04

I want to create a session handler from scratch. I don\'t want to use session_set_save_handler. I can\'t find anything anywhere though and I just don\'t know where

3条回答
  •  悲哀的现实
    2021-02-06 19:32

    what i do when calling session's

    //to start session and set the var's

    session_start();

    $_SESSION['login']='yes';

    $_SESSION['someinfo']=$var;

    //when calling

    session_start();

    $var= $_SESSION['someinfo'];

    i hope this helps

    -kris

提交回复
热议问题