/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] echo $_Session values ????

Hey All,
I’m trying to track down some strange behavior in a SugarCRM module,
and I suspect if I could view the values of the current session cookie it
would take me a long way toward discovering the cause. Trouble is…
While I have — in the not too distant past — successfully echoed A
session cookie in another project, for the life of me I can’t remember
how I did it, and am comming up empty handed in my searches on the subject.

Of course I have no idea what the NAME of the Session is or might be.

Anyone??? Please.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 15.2007 — If you want to view all of the current cookies:
[code=php]
printf("<pre>%s</pre>n", print_r($_COOKIE, 1));
[/code]

If you want to view all of the current session variables:
[code=php]
// must come after session_start()
printf("<pre>%s</pre>n", print_r($_SESSION, 1));
[/code]
Copy linkTweet thisAlerts:
@tjmcdauthorJun 15.2007 — You da magic man!

Thank you Nog Dog!

That's just the ticket.
×

Success!

Help @tjmcd 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.15,
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,
)...