GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech A quick 'sessions' question (https://gfy.com/showthread.php?t=1355875)

Publisher Bucks 06-29-2022 07:33 AM

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 :)

sarettah 06-29-2022 08:58 AM

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

.

CurrentlySober 06-29-2022 09:13 AM

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...:2 cents:

Klen 06-29-2022 09:35 AM

Quote:

Originally Posted by CurrentlySober (Post 23016745)
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...:2 cents:

In spain, session is when yo go dance with your friends :upsidedow

CurrentlySober 06-29-2022 09:58 AM

Quote:

Originally Posted by Klen (Post 23016751)
In spain, session is when yo go dance with your friends :upsidedow

Dance all night to repetitive loud bass beats after taking ecstasy?

Yup, same thing then :upsidedow

zijlstravideo 06-29-2022 02:20 PM

Quote:

Originally Posted by CurrentlySober (Post 23016745)
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...:2 cents:

i lik sessions 2... :pimp


All times are GMT -7. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123