vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Issue with cookie/session timeout on website homepage (https://vborg.vbsupport.ru/showthread.php?t=176994)

CPC_half 04-24-2008 12:21 AM

Issue with cookie/session timeout on website homepage
 
Hi,

I make a website and i install VBB for my community. I would like to use VBB session on my website to access users informations. (new message, friend logged...)

I include global.php and i add a form to login from homepage. It works fine with this code :

HTML Code:

<form action="forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
    Account:<input name="vb_login_username" type="text" id="navbar_username" onfocus="if (this.value == 'Identifiant') this.value = '';"/><br/>
    Password:<input name="vb_login_password" type="password"><br/>
    <label for="cb_cookieuser_navbar"><input class="box" name="cookieuser" type="checkbox" id="cb_cookieuser_navbar" value="1" checked="checked" />
    Remind me</label><br/>
    <input type="submit" title="some text..." value="Connect" />
    <input type=hidden name="s" value="" />
    <input type=hidden name="do" value="login" />
    <input type=hidden name="vb_login_md5password" />
    <input type=hidden name="vb_login_md5password_utf" />
</form>

When i'm logged i can go to website/forum without issue, but i have an issue with timeout cookie on website. Indeed when cookie expires, session stop on website. But if i go to forum and go back to website, session is up... If i close session on website or forum, both sessions are closed.

So i think i need to add a code to check session/cookie on website...

Can you help me please ? Thanks.

ps : settings :

website is www.canardplus.com
forum is forum.canardplus.com
Cookie domain is .canardplus.com


All times are GMT. The time now is 05:01 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.00887 seconds
  • Memory Usage 1,716KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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