Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-29-2022, 07:33 AM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,123
A quick 'sessions' question

Can sessions be carried across multiple domains or are they specific to just one?

I'm using the following on one of our admin systems right now and wondered if it was a good idea to have the same session carried across to our others for staff members that have access to multiple systems?

Quote:
<?php
// Initialize session
session_start();

// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: index.php");
exit;
}
?>
If they are able to be used on multiple domains, will the code above be enough or do I need to change that to something else?

Are there any possible issues with using one session across several domains?

TIA for any information you can offer
__________________
SOMETHING EXTREME IS COMING SOON!
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2022, 08:58 AM   #2
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,058
Sessions are tied to cookies so no, you cannot access them across multiple domains.

You could pass them in the url or something but that would not really be a good thing to do security wise in my opinion.


Again, google is your friend:

My search was "php sessions across multiple domains"

First item was:

https://stackoverflow.com/questions/...ferent-domains

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2022, 09:13 AM   #3
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,522
In the UK, a 'Session' is when you get together with your pals and all you all get fucked up on drugs...

i lik sessions...
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2022, 09:35 AM   #4
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by CurrentlySober View Post
In the UK, a 'Session' is when you get together with your pals and all you all get fucked up on drugs...

i lik sessions...
In spain, session is when yo go dance with your friends
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2022, 09:58 AM   #5
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,522
Quote:
Originally Posted by Klen View Post
In spain, session is when yo go dance with your friends
Dance all night to repetitive loud bass beats after taking ecstasy?

Yup, same thing then
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-29-2022, 02:20 PM   #6
zijlstravideo
Confirmed User
 
zijlstravideo's Avatar
 
Industry Role:
Join Date: Sep 2013
Location: The Netherlands
Posts: 805
Quote:
Originally Posted by CurrentlySober View Post
In the UK, a 'Session' is when you get together with your pals and all you all get fucked up on drugs...

i lik sessions...
i lik sessions 2...
__________________
Contact: email
zijlstravideo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
domains, multiple, session, systems, sessions, carried, offer, code, change, tia, issues, information, admin, quick, question, specific, staff, access, idea, wondered



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.