FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Help checking these forums cookies
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 02:46 PM

Hi Antoino,

I have removed all cookies related to *.fivetechsupport.com. There is not any changes. It still ask the login everytime.

I use chrome.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 03:06 PM
Here the same problem.

Also with Chrome

Horizon wrote:Hi Antoino,

I have removed all cookies related to *.fivetechsupport.com. There is not any changes. It still ask the login everytime.

I use chrome.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 03:08 PM

Same problem here using MS Edge Chromium. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 05:31 PM

Please press F5 after deleting the cookies

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 05:36 PM

Sorry, no change. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Help checking these forums cookies
Posted: Thu Apr 01, 2021 05:42 PM

Enrico,

many thanks for your feedback

Here it is working ok, quite curious...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: Help checking these forums cookies
Posted: Fri Apr 02, 2021 06:54 AM

Antonio ,
Same problem here using Chrome
Maurizio

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Help checking these forums cookies
Posted: Fri Apr 02, 2021 09:07 AM
Antonio,
I had the same problem in a forum of a workers' union
there is an problem on phpbb

Please Read my notice look this


https://www.phpbb.com/support/docs/en/3 ... e-settings

1. The ACP
phpBB3 has the option to manually change your Cookie settings in the ACP.

First go to the window to edit your settings. :-)
You can find it here: ACP ==> Tab "General" ==> Server configuration ==> Cookie settings
Here fill in your new cookie settings you've figured out above. Very simple.


2. A special file
First of all copy the following code and give the file the name cookie.php, upload it in to your forum root where the board's config.php file is as well.

Code (fw): Select all Collapse
<?php
/**
*
* @package Cookie and server settings tool
* @copyright (c) 2008 ktuk.net
* @copyright (c) 2011 phpbb.com
* @license GPL
*
*/

// Standard definitions/includes
$page_title = 'phpBB3 Cookies';
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$script_name = (isset($request) && ($request instanceof \phpbb\request\request_interface)) ? $request->server('SCRIPT_NAME', '') : $_SERVER['SCRIPT_NAME'];

$cookie_data = array();
$server_data = array();
$sent = request_var('sent', '');

// Gather cookie settings from config array
$cookie_data[] = $config['cookie_domain'];
$cookie_data[] = $config['cookie_name'];
$cookie_data[] = $config['cookie_path'];
$cookie_data[] = $config['cookie_secure'];

$server_data[] = $config['force_server_vars'];
$server_data[] = $config['script_path'];
$server_data[] = $config['server_name'];
$server_data[] = $config['server_port'];
$server_data[] = $config['server_protocol'];

$cookie_checked = ($cookie_data[3]) ? "checked = \"checked\"" : '';
$force_checked = ($server_data[0]) ? "checked = \"checked\"" : '';


if (!$sent)
{
   print "<html>
   <head><title>$page_title</title></head>
   <body>
   
   <form action=\"" . $script_name . "\" method=\"post\"
   <fieldset>
   <table>
      <tr><h2>Cookie Settings</h2></tr>
      <tr><td>Cookie Domain:</td><td><input type=\"text\" name=\"cookie_domain\" value=\"" . $cookie_data[0] . "\"></td></tr>
      <tr><td>Cookie Name:</td><td><input type=\"text\" name=\"cookie_name\" value=\"" . $cookie_data[1] . "\"></td></tr>
      <tr><td>Cookie Path:</td><td><input type=\"text\" name=\"cookie_path\" value=\"" . $cookie_data[2] . "\"></td></tr>
      <tr><td>Cookie Secure:</td><td><input type=\"checkbox\" name=\"cookie_secure\" value=\"1\" $cookie_checked ></td></tr>
   </table>

   <table>
      <tr><h2>Server Settings</h2></tr>
      <tr><td>Force Server Vars:</td><td><input type=\"checkbox\" name=\"force_server_vars\" value=\"1\"  $force_checked ></td></tr>
      <tr><td>Script Path:</td><td><input type=\"text\" name=\"script_path\" value=\"" . $server_data[1] . "\"></td></tr>
      <tr><td>Server Name:</td><td><input type=\"text\" name=\"server_name\" value=\"" . $server_data[2] . "\"></td></tr>
      <tr><td>Server Port:</td><td><input type=\"text\" name=\"server_port\" value=\"" . $server_data[3] . "\"></td></tr>
      <tr><td>Server Protocol:</td><td><input type=\"text\" name=\"server_protocol\" value=\"" . $server_data[4] . "\"></td></tr>
      <tr><td>Submit:</td><td><input type=\"submit\" name=\"sent\" value=\"submit\"></td></tr>
   </table>
   </fieldset>
   </body>
   <html>
   ";
}

if ($sent)
{
   $cookie_domain      = request_var('cookie_domain', '');
   $cookie_name      = request_var('cookie_name', '');
   $cookie_path      = request_var('cookie_path', '');
   $cookie_secure      = request_var('cookie_secure', 0);
   $force_server_vars   = request_var('force_server_vars', 0);
   $script_path      = request_var('script_path', '');
   $server_name      = request_var('server_name', '');
   $server_port      = request_var('server_port', 80);
   $server_protocol   = request_var('server_protocol', 'http://');

   $sql_ary = array(
       'cookie_domain'      => $cookie_domain,
       'cookie_name'      => $cookie_name,
       'cookie_path'      => $cookie_path,
       'cookie_secure'      => $cookie_secure,
       'force_server_vars'   => $force_server_vars,
       'script_path'      => $script_path,
       'server_name'      => $server_name,
       'server_port'      => $server_port,
       'server_protocol'   => $server_protocol
   );

   foreach ($sql_ary as $config_name => $config_value)
   {
      set_config($config_name, $config_value);
   }

   print "Settings are updated!";
   print "<meta http-equiv=\"refresh\" content=\"4;./cookie.php\">";
}


Browse to the script at its URL in your web browser, for example http://www.example.com/forum/cookie.php The script will then load a form showing your current server and cookie details which you can amend to the correct settings. Once you have got the settings edited correctly, click the submit button. After you're finished don't forgot to remove the script from your server. Otherwise everyone can edit your settings.

3. The database
Another possibility is using the database to run a few queries that update your cookie settings. Go to phpMyAdmin and run the following queries:
Code (fw): Select all Collapse
UPDATE phpbb_config SET config_value = 'YOUR COOKIE DOMAIN HERE' WHERE config_name = 'cookie_domain';
UPDATE phpbb_config SET config_value = 'YOUR COOKIE NAME HERE' WHERE config_name = 'cookie_name';
UPDATE phpbb_config SET config_value = 'YOUR COOKIE PATH HERE' WHERE config_name = 'cookie_path';
UPDATE phpbb_config SET config_value = '0' WHERE config_name = 'cookie_secure';




Please note that you have to replace the first 3 with your settings and for the last one you only edit the zero when you have Cookie Secure enabled, otherwise you don't do anything with it. Also note that when your table prefix is not phpbb_ you have to edit it to your database table prefix, and don't forget to purge the cache by removing all files from the cache folder except index.htm and .htaccess.
So, I hope your cookie settings are correct now and you can enjoy the "Log me on automatically each visit" option!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion