ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:session_index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:session:session_index [2023/04/08 18:08] – Add WRAPs for notes dregadv5:session:session_index [2024/10/08 09:21] (current) – [Using Encrypted Sessions] dregad
Line 85: Line 85:
                               and you are NOT using oci8 driver                               and you are NOT using oci8 driver
  
-==== Usage Examples ====+==== Non-persistent Connections====
  
-To force non-persistent connections, call ''persist()'' first before ''session_start()'':+To force non-persistent connections, call ''persist()'' before ''session_start()'':
  
 <code php> <code php>
- 
 include_once "adodb/session/adodb-session2.php"; include_once "adodb/session/adodb-session2.php";
 $driver   = 'mysql';  $driver   = 'mysql'; 
Line 99: Line 98:
  
 ADOdb_Session::config($driver, $host, $user, $password, $database, $options=false); ADOdb_Session::config($driver, $host, $user, $password, $database, $options=false);
-ADOdb_Session::persist($connectMode=false);+ADOdb_Session::persist(false);
 session_start(); session_start();
- 
 </code> </code>
 ==== DSN Support ==== ==== DSN Support ====
Line 115: Line 113:
  
 ===== Using Encrypted Sessions ===== ===== Using Encrypted Sessions =====
-To use encrypted sessions, replace the file ''adodb-session2.php'' with ''adodb-cryptsession2.php'':+To use encrypted sessions, replace the file ''adodb-session2.php'' with ''adodb-cryptsession2.php'':
  
 <code php> <code php>
v5/session/session_index.1680970099.txt.gz · Last modified: 2023/04/08 18:08 by dregad