vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Checking for logged in users (https://vborg.vbsupport.ru/showthread.php?t=49544)

Syberius 03-18-2003 12:12 PM

Just had a thought, how can this be done if my site is on a subdomain of the main one, but both sites are on the same server?

Syb,

Xenon 03-18-2003 01:15 PM

if you use absolute path's it should work :)

Syberius 03-19-2003 06:11 PM

Well, the idea was there but not quite that simple.

I have had to copy global.php into the root dir of the site and also copy 4 other files into a new "admin" dir.

Then I had to edit a few SQL queries in the files because the SQL Connection I use for my site is not the same as for the main one.

The setup works but I would prefer to control the sessions via MySQL but I dont know enough about how vbb was coded to do this.

Can you maybe give me some hints and tips on how I can keep a user's session alive on my site using the vbb db tables?

I have good knowledge of php and mysql but my brain just aint ready for reading the vbb code yet!

Thx,

Syb,

Xenon 03-19-2003 06:48 PM

hmm i think a chdir() use before including global.php would have been enough, no need to copy files :)

hmm, the sessions.php which controlls the vb sessions is a file i never worked with, just take a look at the table sessions of the vb database, every active user is in there with a field lastactivity. just update this field to time() to keep trhe session alive :)

Syberius 03-19-2003 06:50 PM

That is what I was not sure of, things like session hash had me thrown, so all I have to do is update that table?

Or, that is how it should work in theroy,

Thx,

Syb,

Xenon 03-19-2003 06:55 PM

it should work :)

just be sure you update the right row ;)


All times are GMT. The time now is 09:00 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.01011 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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