Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Server
Tiny Tiny RSS
Commits
5160620c
Commit
5160620c
authored
Mar 28, 2013
by
Andrew Dolgov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only autostart session if login cookie exists
parent
f820f205
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
api/index.php
api/index.php
+1
-2
classes/api.php
classes/api.php
+2
-0
classes/handler/public.php
classes/handler/public.php
+2
-0
include/sessions.php
include/sessions.php
+3
-1
No files found.
api/index.php
View file @
5160620c
...
...
@@ -46,10 +46,9 @@
if
(
$_REQUEST
[
"sid"
])
{
session_id
(
$_REQUEST
[
"sid"
]);
@
session_start
();
}
@
session_start
();
if
(
!
init_connection
(
$link
))
return
;
$method
=
strtolower
(
$_REQUEST
[
"op"
]);
...
...
classes/api.php
View file @
5160620c
...
...
@@ -47,6 +47,8 @@ class API extends Handler {
}
function
login
()
{
@
session_start
();
$login
=
db_escape_string
(
$this
->
link
,
$_REQUEST
[
"user"
]);
$password
=
$_REQUEST
[
"password"
];
$password_base64
=
base64_decode
(
$_REQUEST
[
"password"
]);
...
...
classes/handler/public.php
View file @
5160620c
...
...
@@ -481,6 +481,8 @@ class Handler_Public extends Handler {
function
login
()
{
@
session_start
();
$_SESSION
[
"prefs_cache"
]
=
array
();
if
(
!
SINGLE_USER_MODE
)
{
...
...
include/sessions.php
View file @
5160620c
...
...
@@ -105,6 +105,8 @@
session_set_cookie_params
(
SESSION_COOKIE_LIFETIME
);
if
(
!
defined
(
'TTRSS_SESSION_NAME'
)
||
TTRSS_SESSION_NAME
!=
'ttrss_api_sid'
)
{
@
session_start
();
if
(
$_COOKIE
[
$session_name
])
{
@
session_start
();
}
}
?>
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