Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
ac3967ca
Commit
ac3967ca
authored
Dec 11, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused property from Session
cleanup after #1479
parent
2fb823a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
26 deletions
+18
-26
Session.php
framework/yii/web/Session.php
+18
-26
No files found.
framework/yii/web/Session.php
View file @
ac3967ca
...
...
@@ -112,43 +112,36 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
return
false
;
}
private
$_opened
=
false
;
/**
* Starts the session.
*/
public
function
open
()
{
if
(
session_status
()
==
PHP_SESSION_ACTIVE
)
{
$this
->
_opened
=
true
;
return
;
}
if
(
!
$this
->
_opened
)
{
if
(
$this
->
getUseCustomStorage
())
{
@
session_set_save_handler
(
[
$this
,
'openSession'
],
[
$this
,
'closeSession'
],
[
$this
,
'readSession'
],
[
$this
,
'writeSession'
],
[
$this
,
'destroySession'
],
[
$this
,
'gcSession'
]
);
}
if
(
$this
->
getUseCustomStorage
())
{
@
session_set_save_handler
(
[
$this
,
'openSession'
],
[
$this
,
'closeSession'
],
[
$this
,
'readSession'
],
[
$this
,
'writeSession'
],
[
$this
,
'destroySession'
],
[
$this
,
'gcSession'
]
);
}
$this
->
setCookieParamsInternal
();
$this
->
setCookieParamsInternal
();
@
session_start
();
@
session_start
();
if
(
session_id
()
==
''
)
{
$this
->
_opened
=
false
;
$error
=
error_get_last
();
$message
=
isset
(
$error
[
'message'
])
?
$error
[
'message'
]
:
'Failed to start session.'
;
Yii
::
error
(
$message
,
__METHOD__
);
}
else
{
$this
->
_opened
=
true
;
$this
->
updateFlashCounters
();
}
if
(
session_id
()
==
''
)
{
$error
=
error_get_last
();
$message
=
isset
(
$error
[
'message'
])
?
$error
[
'message'
]
:
'Failed to start session.'
;
Yii
::
error
(
$message
,
__METHOD__
);
}
else
{
$this
->
updateFlashCounters
();
}
}
...
...
@@ -157,7 +150,6 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
*/
public
function
close
()
{
$this
->
_opened
=
false
;
if
(
session_id
()
!==
''
)
{
@
session_write_close
();
}
...
...
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