Author Topic: sessionid in the address  (Read 23082 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
sessionid in the address
« Reply #15 on: June 13, 2003, 01:42:45 PM »
For the new version, it will be possible to use the PHP default or a database-based sessions (or whatever you like due to the driver-based architecture ;)).
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
sessionid in the address
« Reply #16 on: June 13, 2003, 01:51:26 PM »
Your session id problem:

Register some template variables:
Code: [Select]
$site_template->register_vars(array(
  "session_mode_cookies" => $site_sess->mode == 'cookie' ? 1 : 0,
  "session_mode_get" => $site_sess->mode == 'cookie' ? 0 : 1,
  "session_id" => $site_sess->session_id,
  "session_name" => SESSION_NAME
);


Use a follows in your templates:
Code: [Select]
{if session_mode_cookies}
./search.php?search_keywords=max+mustermann
{endif session_mode_cookies}
{if session_mode_get}
./search.php?{session_name}={session_id}&search_keywords=max+mustermann
{endif session_mode_get}

I know thats not the best solution, but i have no other at the moment.... :roll:

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
sessionid in the address
« Reply #17 on: June 13, 2003, 05:18:13 PM »
Quote from: bernd
- no offense to anyone!
 None taken, at least not by me!  :D

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: sessionid in the address
« Reply #18 on: June 03, 2005, 06:51:32 PM »
I see this situation:
When I visit my site first time - all links contains "sessionid=";
If I click on picture of the day or random image - "sessionid=" not shown in links of this images next time (and it is correct), but all another links - categories, links of new images, links of images in categories etc. contains "sessionid=". Why?
How I can resolve this? 

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: sessionid in the address
« Reply #19 on: June 04, 2005, 12:35:48 AM »
I belive it has something to do with "cache" feature in v1.7.1
Before the hack this issue was discussed, and Jan had posted some code...dont know if it solved the problem or not...
hopefuly Jan still remmebers what was the code...

just in case, try this too:
http://www.4homepages.de/forum/index.php?topic=6998.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: sessionid in the address
« Reply #20 on: June 04, 2005, 07:35:20 AM »
just in case, try this too:
http://www.4homepages.de/forum/index.php?topic=6998.0

Thanks, but this hack don't resolve this problem.

I resolve this by changing 3 variables in global.php:

find:
Code: [Select]
$cache_page_index = 1;
$cache_page_categories = 1;
$cache_page_top = 1;
change to:
Code: [Select]
$cache_page_index = 0;
$cache_page_categories = 0;
$cache_page_top = 0;

Now all working correctly  :wink: