vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Where is the "Remember Me" Code (https://vborg.vbsupport.ru/showthread.php?t=168309)

candeos 01-20-2008 05:19 PM

Where is the "Remember Me" Code
 
Hello

I am using a learning site and VB that work together.

I want to make the cookie on the learning site have the same expiration parameters that the VB site has , so I was wondering where I can find the cookie code that is part of the Remember Me checkbox

Thanks in advance for the help!

Dave

Dismounted 01-21-2008 04:05 AM

PHP Code:

$password md5(md5($password) . $salt);

setcookie(COOKIE_PREFIX 'userid'$useridtime() + 14400);
setcookie(COOKIE_PREFIX 'password'md5($password $license), time() + 14400); 


candeos 01-21-2008 11:21 AM

Thanks for the information....

If it is set to time + 14,400, doesnt that make it expire after 40 hours ( assuming 14,400 is seconds?)

We set our cookie to time() +60*60*24*365 and it seems to be expiring..

Thanks!

Dave

badran 01-25-2008 09:36 PM

The cookie is set, but for some reason is ignored when a new session is set.. any ideas?


All times are GMT. The time now is 11:12 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.00957 seconds
  • Memory Usage 1,714KB
  • 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
  • (4)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