/    Sign up×
Community /Pin to ProfileBookmark

Sessions or Cookies

Which is better to use, sessions or cookies and why? Is there a way to use both? If so, how?
Thanks in advance.

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@pyroSep 07.2003 — It depends what you need to do. Basically, they are going to do the same thing, so I'm not sure why you'd want to use both...
Copy linkTweet thisAlerts:
@Ironmann00authorSep 07.2003 — I am looking for the most secure way to login and so forth. I am currently using sessions. Should I use Cookies or Sessions for to be more secure?
Copy linkTweet thisAlerts:
@pyroSep 07.2003 — Both ways are probably ok, but I would stick with the sessions...
Copy linkTweet thisAlerts:
@Ironmann00authorSep 07.2003 — Thanks a bunch Pyro.
Copy linkTweet thisAlerts:
@pyroSep 08.2003 — No problem... ?
×

Success!

Help @Ironmann00 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...