Jump to content

simple question


spdwrench

Recommended Posts

I am using a variable $sAuth

 

to login member of my site from one script into another...

 

is this secure?

 

can this variable $sAuth by set from anywhere else but within my own site???

 

I know it probally sounds like a dumb question but please let me know....

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/74196-simple-question/
Share on other sites

little more information it appears the sAuth is a cookie it looks like this...

 

setcookie("sAuth", $fMember[ id ]);

 

this cookie is set on my site when members log in...

 

but I want to use it to identify them in PHPBB3 (Forum)

 

and sign them in automaticly

 

will this be secure?

 

thanks

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/74196-simple-question/#findComment-374757
Share on other sites

my problem is... the users log in to my dating site

 

then when they click the forum they are prompted to log in again...

 

so would the answer be to find the login area's of both sides? and make sure sessions for both are started when they sign in either the forum or the site... or vise versa...

 

this seams the only logical way then?

 

thanks

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/74196-simple-question/#findComment-376660
Share on other sites

It sounds like the problem is you want to use both session management for each script; it would be better to pick one of the existing ways that sessions are handled then implement that into the second script. Since you want to authenticate with phpbb3, I'd just use its session management and add it to your other script.

Link to comment
https://forums.phpfreaks.com/topic/74196-simple-question/#findComment-376717
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.