Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Arturo Montejo Ráez
/
wbt-web-app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
52965bf1
authored
Mar 30, 2020
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
test
parent
f126de96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
application/config/config.php
system/libraries/Session/Session.php
system/libraries/Session/drivers/Session_database_driver.php
application/config/config.php
View file @
52965bf1
...
...
@@ -379,7 +379,7 @@ $config['encryption_key'] = 'GLn08ulSFJM3dTx4Q17o7hdFjlSEeX9I';
*/
$config
[
'sess_driver'
]
=
'database'
;
$config
[
'sess_save_path'
]
=
'ci_sessions'
;
/
/$config['sess_driver'] = 'files';
/
*$config['sess_driver'] = 'files';*/
$config
[
'sess_cookie_name'
]
=
'ci_session'
;
$config
[
'sess_expiration'
]
=
7200
;
$config
[
'sess_save_path'
]
=
NULL
;
...
...
system/libraries/Session/Session.php
View file @
52965bf1
...
...
@@ -306,8 +306,6 @@ class CI_Session {
$params
[
'match_ip'
]
=
(
bool
)
(
isset
(
$params
[
'match_ip'
])
?
$params
[
'match_ip'
]
:
config_item
(
'sess_match_ip'
));
echo
"==>"
.
config_item
(
'sess_save_path'
);
echo
"===>"
.
$params
[
'save_path'
];
exit
;
isset
(
$params
[
'save_path'
])
OR
$params
[
'save_path'
]
=
config_item
(
'sess_save_path'
);
$this
->
_config
=
$params
;
...
...
system/libraries/Session/drivers/Session_database_driver.php
View file @
52965bf1
...
...
@@ -163,9 +163,9 @@ class CI_Session_database_driver extends CI_Session_driver implements SessionHan
$this
->
_db
->
select
(
'data'
)
->
from
(
$this
->
_config
[
'save_path'
])
// ->from($this->_config['save_path'])
->
from
(
'ci_sessions'
)
->
where
(
'id'
,
$session_id
);
echo
"->"
.
$this
->
_config
[
'save_path'
];
echo
"-->"
.
config_item
(
'sess_save_path'
);
exit
;
if
(
$this
->
_config
[
'match_ip'
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment