Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Törcsvári Gergő
AuthSCH - Client
Commits
c3411afa
Commit
c3411afa
authored
Jan 08, 2014
by
zolij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session kezelés
parent
5c738b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
php/AuthSCHClient.class.php
php/AuthSCHClient.class.php
+3
-1
No files found.
php/AuthSCHClient.class.php
View file @
c3411afa
...
...
@@ -16,11 +16,13 @@ class AuthSCHClient {
if
(
$checkLogin
===
true
)
{
if
(
session_id
()
==
''
)
{
// session isn't started
session_set_cookie_params
(
3600
,
"/"
);
session_start
();
}
if
(
!
isset
(
$_SESSION
[
'a
uth
token'
]))
{
if
(
!
isset
(
$_SESSION
[
'a
ccess_
token'
]))
{
// auth token not exists
$this
->
authenticate
();
$_SESSION
[
'access_token'
]
=
$this
->
tokens
->
access_token
;
}
}
...
...
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