vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   login verify need help (https://vborg.vbsupport.ru/showthread.php?t=108001)

khan3332 02-14-2006 09:14 PM

login verify need help
 
Code:

<?php

session_start();

define('VB_AREA', 'Forum');

$theForum = $_GET['fo'];

include("../".$theForum."/includes/functions_login.php");

define('CWD', "/home/myserver/httpdocs/".$theForum);

include("../".$theForum."/includes/init.php");

verify_authentication("somebody", "mypass", false, false, true, true);

header("Location: ../$theForum");

?>


this code works fine and logs the person into the forum

however if i edit the file and change the username to "sombody2"

and load the file again on the SAME browser

it will be stilled logged in as "somebody"


both accounts are valid with the same password

I guess the cookie/session is causing this, any idea how I can solve this problem?


any help appreciated

Marco van Herwaarden 02-14-2006 09:55 PM

Logout before trying to login with a different name.

khan3332 02-15-2006 02:46 AM

yea but the thing is that people don't usually log out
they just close the browser =(

Marco van Herwaarden 02-15-2006 09:32 AM

Well then they will be automatically logged in of they ticked the Remember Me box.

Why do you want them to login with a different name when not logged out?

khan3332 02-15-2006 12:47 PM

because its possible for a person to have multiple accounts.
And i dont want them to log in as another person when they are logged in as a different person in another part of my system.

Its like having 2 bank accounts
log into one, close browser, log into another bank account
only to see the balance of the first bank account


All times are GMT. The time now is 02:59 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.01021 seconds
  • Memory Usage 1,711KB
  • 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_code_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