/    Sign up×
Community /Pin to ProfileBookmark

Sessions PHP variables

Hello. I am coding a site where I need the session php variables, that have different value for every site visitor. When I refresh the page, the content of a session php variable disappears. Is there any explanation for that? Thank you.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 20.2021 — > @codewitch#1634465 Is there any explanation for that?

I'm sure there's an explanation, but no way I'd hazard a guess without seeing the relevant code.
Copy linkTweet thisAlerts:
@koshashah401Jul 22.2021 — Without seeing the code, I can't give appropriate solutions!
Copy linkTweet thisAlerts:
@developer_webJul 23.2021 — @codewitch#1634465

Why don't you show him your php code ? There could be many reasons why your session variables disappear. Maybe, you call a function somewhere and that function got code at the bottom to unset variables or sessions or destroy sessions. Oh, I don't know! I'm just a beginner. But if my reply helps then do let me know. Best you get your code checked by NogDog and the like.
×

Success!

Help @codewitch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...