vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Including logouthash outside vB? (https://vborg.vbsupport.ru/showthread.php?t=101601)

ex-machina 11-26-2005 03:23 PM

Including logouthash outside vB?
 
Hey,

I'm in an usual situation. We're using vB for our forum side, but the rest of our site is ASP and I'm not proficient enough with ASP to completely recode. I've worked my way around the user system so I can have users logged in on the forums on the rest of the site and everything seems to be working fine regardless of cookie settings etc. but unfortunately I can't work out how to include a working log out link on the ASP pages. We're running 3.5.0 and logouthash is driving me insane. Is there any way to build the logouthash for the link through ASP or is that not possible? It's not stored in any tables so I've no way to get it working.

Links to login.php throw up an error with a link to log out properly, but I'd rather my users didn't have to go through an extra page just to log out. On the plus side, it's an extra banner impression, but on the downside it's just not right... Anyone have any idea?

Marco van Herwaarden 11-26-2005 08:44 PM

PHP Code:

    $user['logouthash'] = md5($user['userid'] . $user['salt'] . COOKIE_SALT); 


ex-machina 11-27-2005 02:15 PM

I found that, but I can't work out how to transfer that into ASP on a page outside of vB...

Marco van Herwaarden 11-27-2005 04:34 PM

The user salt is jsut stored in teh user table. The cookie salt is stored in the cookie, just md5 that with the userid.

ex-machina 12-02-2005 04:12 PM

Ahh I see. Which cookie? The values I see are bblastactivity, bbuserid, bbpassword, bbsessionhash and bbforum_view.


All times are GMT. The time now is 04:59 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.01019 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_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