Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 51dcc41

Browse files
committed
[UPD] change path session save in config.php file
Thx Watchara for report bug
1 parent bcdd354 commit 51dcc41

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

application/config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
$config['sess_driver'] = 'files';
362362
$config['sess_cookie_name'] = 'ci_session';
363363
$config['sess_expiration'] = 7200;
364-
$config['sess_save_path'] = NULL;
364+
$config['sess_save_path'] = APPPATH.DIRECTORY_SEPARATOR.'session';
365365
$config['sess_match_ip'] = FALSE;
366366
$config['sess_time_to_update'] = 300;
367367
$config['sess_regenerate_destroy'] = FALSE;

application/session/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>403 Forbidden</title>
5+
</head>
6+
<body>
7+
8+
<p>Directory access is forbidden.</p>
9+
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)