Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
d4b2aa3e
Commit
d4b2aa3e
authored
11 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Register session close on shutdown at the start of session handling
This is necessary to make sure session data is saved on redirect.
parent
9be06d36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class.ostsession.php
+4
-2
4 additions, 2 deletions
include/class.ostsession.php
with
4 additions
and
2 deletions
include/class.ostsession.php
+
4
−
2
View file @
d4b2aa3e
...
...
@@ -26,8 +26,12 @@ class osTicketSession {
if
(
!
$this
->
ttl
)
$this
->
ttl
=
SESSION_TTL
;
// Set osTicket specific session name.
session_name
(
'OSTSESSID'
);
// Forced cleanup on shutdown
register_shutdown_function
(
'session_write_close'
);
if
(
OsticketConfig
::
getDBVersion
())
return
session_start
();
...
...
@@ -56,8 +60,6 @@ class osTicketSession {
array
(
&
$this
,
'destroy'
),
array
(
&
$this
,
'gc'
)
);
//Forced cleanup.
register_shutdown_function
(
'session_write_close'
);
//Start the session.
session_start
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment