vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What is a sessionhash ? (https://vborg.vbsupport.ru/showthread.php?t=168174)

8utt 01-19-2008 10:52 AM

What is a sessionhash ?
 
Whats the difference between

SESSION_IDHASH
and
SESSION_HASH

The session hash is created uniquely once every visit ?
The session Idhash is created uniquely for the same computer ?

So if I visit the same site from the same computer i get a new session hash but keep the same session idhash ?

If someone could put me right or confirm that thats how its supposed to work that would be great.

Opserty 01-19-2008 11:07 AM

PHP Code:

define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . $this->fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session 

IP + browser basically.

8utt 01-19-2008 06:14 PM

so any ideas on a session hash ?

What I was thinking was say I come on here, I get a session hash and a session idhash.
If I leave the site and return back to it in 8 hours time on the same pc and ip

Do I get a new sessionhash but keep the session idhash ?

Opserty 01-19-2008 06:31 PM

Yeah I think it is something like that.

https://vborg.vbsupport.ru/showthread.php?t=100285#5

Dismounted 01-21-2008 04:07 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1348192&postcount=4" target="_blank">https://vborg.vbsupport.ru/showp...92&postcount=4</a>


All times are GMT. The time now is 01:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete