Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
session time
You don't have permission for this action!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2022-12-18 16:40:53
When I log in, my session is disconnected in less than 1 minute. Is there any way to increase session time?
2022-12-18 19:28:38
that sounds like a browser issue. Try clearing cookies and data cache
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-12-18 22:32:23
you can check config.php for
http://
and
https://


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-12-19 01:27:09
This is no means the browsers fault. It is reading a value of 60 somewhere. Dig into /backend/functions.php and search for the "setcookie()" function and evaluate the parameters for yourself.
2022-12-20 10:30:52
I had already tried several browsers and deleting browsing data.

I don't understand what you mean in the config.php, I have already checked the whole file and there is no reference to the session time.

For the function.php the only thing referring to setcookie() is this:

function logincookie($id, $password, $secret, $updatedb = 1, $expires = 0x7fffffff) {
$hash = sha1($id.$secret.$password.getip().$secret);
setcookie("pass", $hash, $expires, "/");
setcookie("uid", $id, $expires, "/");

if ($updatedb)
SQL_Query_exec("UPDATE users SET last_login = '".get_date_time()."' WHERE id = $id");
}

function logoutcookie() {
setcookie("pass", null, time(), "/");
setcookie("uid", null, time(), "/");
2022-12-20 12:07:27

function logincookie($id, $password, $secret, $remember = false, $updatedb = 1, $expires = 0x7fffffff) {
if ( !$remember ) $expires = null;
$hash = sha1($id.$secret.$password.getip().$secret);
setcookie("pass", $hash, $expires, "/");
setcookie("uid", $id, $expires, "/");
if ($updatedb)
SQL_Query_exec("UPDATE users SET last_login = '".get_date_time()."' WHERE id = $id");
}

function logoutcookie() {
setcookie("pass", null, time(), "/");
setcookie("uid", null, time(), "/");
}


Test this and check your theme header.php if you have something there too

PS
What themes are you using and what script is it too


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-12-20 17:22:31
The only modification I have made is the one in this post:
https://torrenttrader.uk/post?id=9769
But instead of using google recaptcha I'm using cloudflare's recaptcha (it's changing google script url only). But in the code there is nothing regarding the session time. Using default theme
Last edited by dranivil on 2022-12-20 17:40:19
2022-12-21 09:55:40
I have done tests. I have reverted all the changes (torrent trader as it comes on github) and the problem is still the same. I'm talking about the admin account
2022-12-21 19:32:44
This is a proven example of an old script.
You should be using sessions with fixation protection. It’s as simple as a drop in class.

Hopefully you get it working, because for me it was hell with this issue about 2 years ago before updating out. Like I said, v3 is is an older system.
2022-12-21 19:48:21
in account login, recover and signup, below dbconn() put
session_start();

github updated. That should have been there, not sure why its missing
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-12-21 19:56:07
2022-12-22 10:39:04
Storrents2020
I do not understand what you mean. I have literally tested with the script without modifications.


MicroMonkey
I have made those modifications and the problem persists.
2022-12-22 12:40:51
@dranivil

Try to install another script as subdomain and test it
if it works nice, you got it if not, you have browser problem


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-12-22 14:25:11
@Botanicar
Indeed, I have tried installing the script directly on a subdomain and it has worked. I'll tell you about my case to see if you can find a solution:
I am using cloudflare with a domain "example.com" in which I have a rule so that putting "example.com" redirects to "www.example.com" and then through cloudflare's internal proxy redirects to a subdomain DDNS pointing to your own server (subdomain.domain.com).
If I access "subdomain.domain.com" it works correctly, but if I access from www.example.com it doesn't. I don't really have a choice as I don't have a fixed IP address and it's impossible not to use a DDNS.
It really is the last step I have left to finish the project I've been working on since summer and I'd like to find a solution...
Last edited by dranivil on 2022-12-22 14:26:47
2022-12-22 18:05:12
I have managed to make an effective solution to the problem by partially disabling the proxy. Thank you everyone for the help.
2022-12-22 23:43:45
That works too - I try not to recommend url exceptions.

While your at a DMZ login solution, it’s useful to know that a session state will not have problems. I don’t know if this is the proxy’s design, or simply aging web technologies. Was very evident with with a manual PHP 5 => 7x upgrade on TTv3.. you will immediately be presented with 30 second login interval and login problems.

That’s the only way I could retain my database. Manually exit out. But that opened up a lot of extensibility and drove forward some interesting innovations.

It takes time but if the login is a problem, I advise an update to that.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728