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
ca6e1bc6
Commit
ca6e1bc6
authored
12 years ago
by
Peter Rotich
Browse files
Options
Downloads
Plain Diff
Merge pull request #320 from protich/issue/317
Client Login issues - issue #317
parents
1f095bda
74dffb3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.client.php
+2
-4
2 additions, 4 deletions
include/class.client.php
include/class.staff.php
+1
-3
1 addition, 3 deletions
include/class.staff.php
with
3 additions
and
7 deletions
include/class.client.php
+
2
−
4
View file @
ca6e1bc6
...
...
@@ -185,7 +185,7 @@ class Client {
$_SESSION
[
'_client'
][
'token'
]
=
$user
->
getSessionToken
();
$_SESSION
[
'TZ_OFFSET'
]
=
$cfg
->
getTZoffset
();
$_SESSION
[
'TZ_DST'
]
=
$cfg
->
observeDaylightSaving
();
$user
->
refreshSession
();
//set the hash.
//Log login info...
$msg
=
sprintf
(
'%s/%s logged in [%s]'
,
$ticket
->
getEmail
(),
$ticket
->
getExtId
(),
$_SERVER
[
'REMOTE_ADDR'
]);
$ost
->
logDebug
(
'User login'
,
$msg
);
...
...
@@ -193,11 +193,9 @@ class Client {
//Regenerate session ID.
$sid
=
session_id
();
//Current session id.
session_regenerate_id
(
TRUE
);
//get new ID.
if
((
$session
=
$ost
->
getSession
())
&&
is_object
(
$session
)
&&
$sid
)
if
((
$session
=
$ost
->
getSession
())
&&
is_object
(
$session
)
&&
$sid
!=
session_id
()
)
$session
->
destroy
(
$sid
);
session_write_close
();
return
$user
;
}
...
...
This diff is collapsed.
Click to expand it.
include/class.staff.php
+
1
−
3
View file @
ca6e1bc6
...
...
@@ -601,10 +601,8 @@ class Staff {
$sid
=
session_id
();
//Current id
session_regenerate_id
(
TRUE
);
//Destroy old session ID - needed for PHP version < 5.1.0 TODO: remove when we move to php 5.3 as min. requirement.
if
((
$session
=
$ost
->
getSession
())
&&
is_object
(
$session
)
&&
$sid
)
if
((
$session
=
$ost
->
getSession
())
&&
is_object
(
$session
)
&&
$sid
!=
session_id
()
)
$session
->
destroy
(
$sid
);
session_write_close
();
return
$user
;
}
...
...
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