vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   session => sessionhash (https://vborg.vbsupport.ru/showthread.php?t=150044)

Osterling 06-18-2007 09:09 PM

session => sessionhash
 
I am looking at my table (session), and checking out the data, for the session hash column I see strange numbers like these "79857fe54ba6af79e61cb23ff6af5ce6". Can anyone help me into figuring out what the exactly means? Is there a function I can run or something?

Antivirus 06-19-2007 02:59 AM

that's just the session ids which are used instead of cookies for users browsing your forums

Osterling 06-19-2007 02:48 PM

How about lastactivity?

Dismounted 06-20-2007 07:10 AM

It's a Unix Timestamp (seconds from Epoch).

nico_swd 06-20-2007 11:23 AM

Quote:

Originally Posted by Dismounted (Post 1272305)
It's a Unix Timestamp (seconds from Epoch).

Nope.

It's as said, a session ID. Which is an one-way encrypted MD5 string.

www.php.net/md5

Osterling 06-20-2007 03:36 PM

Thanks. I see that this variable: $_SERVER['REQUEST_TIME'] will get me a Unix Time stamp. How can I translate that time stamp into something readable?

nico_swd 06-20-2007 05:41 PM

With the date() function.

www.php.net/date

Osterling 06-20-2007 06:39 PM

I tried that, but I don't know how to use the date() function to translate $_SERVER['REQUEST_TIME'] which produces a value of "1182368246" sometimes.

nico_swd 06-20-2007 07:12 PM

Look at the link I posted:

string date ( string $format [, int $timestamp] )

Which would be similar to:
PHP Code:

$date date('dS M Y, H:i:s'$_SERVER['REQUEST_TIME']); 


Dismounted 06-21-2007 06:11 AM

Quote:

Originally Posted by nico_swd (Post 1272406)
Nope.

It's as said, a session ID. Which is an one-way encrypted MD5 string.

www.php.net/md5

Read the post above mine "How about lastactivity?".


All times are GMT. The time now is 10:48 PM.

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.01261 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete