Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
likel authored Oct 12, 2017
1 parent 90fc4b1 commit fd4be22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This package is designed to store PHP sessions in a MySQL database so that you c

### Installing on your server

Create a session table in your MySQL database by running [install/setup.sql](install/setup.sql)
1. Create a session table in your MySQL database by running [install/setup.sql](install/setup.sql)

```
CREATE TABLE `likel_sessions` (
Expand All @@ -25,29 +25,29 @@ CREATE TABLE `likel_sessions` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
```

Move the files under /src into a directory on your server such as "session"
2. Move the files under /src into a directory on your server such as "session"

```
e.g. session/ini, session/models, session/autoload.php, session/example.php
```

Move the [ini/credentials.ini](ini/credentials.ini) file to a location not accessible by the public
3. Move the [ini/credentials.ini](ini/credentials.ini) file to a location not accessible by the public

```
e.g. $ mv ini/credentials /var/www/html/
```

Update the database information in the credentials.ini file
4. Update the database information in the credentials.ini file

Ensure that when you create a new session you specify the new credentials.ini location
5. Ensure that when you create a new session you specify the new credentials.ini location

```
$session = new Likel\Session\Handler(array(
'credentials_location' => "/path/to/new/credentials.ini"
));
```

Run [src/example.php](src/example.php) and check your database for the newly created session
6. Run [src/example.php](src/example.php) and check your database for the newly created session

## Running the tests

Expand Down

0 comments on commit fd4be22

Please sign in to comment.