Featured post
Is there a way to empty the session file with PHP? -
i'm wondering if can destroy/modify sessions in native php way doesn't involve file i/o directives.
i'm not talking $_session, i mean access session files themselves.
for instance, php stores sessions on linux files:
@lamp:/var/lib/php5$ ls sess_301dc8935f1775312e9007431782c68b sess_6892f0bec257e646d193adfd91233c40 sess_966909941003dd6fd333727d8862be6e sess_cb7c07117cef89674a686ffff8a730f2 sess_ffb4db1d9002741b7e0fcc02090b9aaa sess_305aeb0fdba7548e389394cb31d77c3b .... etc
$_session gives value of what's inside current session, , session_start()
, session_destroy()
terminate current session identifier.
i want know if can destroy or modify sessions globally in native way php doesn't resort me having fopen(/var/lib/php5/sess_whatever)
, don't want work current session, want script able either delete or modify sessions outside of $_session
, session_start
, , session_stop
do, force use present session.
sounds me can't have both ways. session handling functions built interact current session. in order manipulate other sessions have go whole fopen() route.
- Get link
- X
- Other Apps
Comments
Post a Comment