need help in session

Started on the old forum in August 2018 · view the original in the archive · old links redirect here

2 replies · 49 views · started 8 years ago · 1 min read

2 participants
rajveer Developer · 104 posts #1

hello everyone i need help in session setup

currently if i want to use session i have two ways

$sid_id = isset($_GET['sid_id']) ? $_GET['sid_id'] : '';

$sid_id = isset($_SESSION['sid_id']) ? $_SESSION['sid_id'] : '';

but on old w8u and gumchat there is session that i linked with both by gumslone i cannot figure out how ??

thing i want to do similar is that setup url sid = sid_id and also setup session = sid_id

then if user is logged in but url is not having sid_id it checks from session and give url that sid_id but wasnt able to figure out how to do that

hoping someone will help me out with this feature

something else Fellow · 2,296 posts #2

Do you mean like this:

$sid_id = (isset($_GET['sid_id']) ? $_GET['sid_id'] : (isset($_SESSION['sid_id']) ? $_SESSION['sid_id'] : ''));

I wouldn't use it, as it defeats the point of using a SESSION if someone can edit the session id via url.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close