Author Topic: Help me please, doubts with sessions and cookies  (Read 8216 times)

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Help me please, doubts with sessions and cookies
« on: October 31, 2008, 08:31:22 AM »
Help me please, some doubts with sessions and cookies

Hi, I have to make a work for my father. A shop. I know that I need sessions for the cart. And cookies for identify the user (user and pass, with md5). But I don't know what is secure (is posible to steal cookies?) and there is people without cokies in the internet browser. Then maybe the people use the database.
Someone could help me please? or tell me a tutorial or documentation?

Thanks !!
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Help me please, doubts with sessions and cookies
« Reply #1 on: November 11, 2008, 12:06:38 PM »
could someone help me please?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Help me please, doubts with sessions and cookies
« Reply #2 on: November 11, 2008, 03:53:03 PM »
For a secure connection you should never use cookies
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Help me please, doubts with sessions and cookies
« Reply #3 on: November 11, 2008, 03:56:14 PM »
I see.. but in the university they only teached me to use cookies. Is there other solution for use sessions for cart and cookies for user identification?
I have see in db from 4images a table named sesions.

Thanks V@no for your reply

please could you tell me what is more secure? I had searched tutorials but I only found cookies.
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Help me please, doubts with sessions and cookies
« Reply #4 on: November 12, 2008, 03:06:11 AM »
Let me just say this:
you can not relay on others when it comes to security, so cookies is out of question, because most of the internet users have no idea how to protect their computers, they don't even have antivirus programs. That said, if you want have a secure connection with your clients, don't use cookies, because cookies can be compromised on the client's computer. Keep session expiration time as short as possible (obviously too short will be annoying). Using cookies for auto login won't be a problem for security, as long as the user being asked enter their password before they can do any changes (or even view details) in their profile or before any money transaction occur.
I don't know what is it you are trying to do exactly, but if it involves payment transaction, I think you'd be better find an ecommerce or something, someone who knows "how and what"...

P.S.
These are my personal thoughts based on what I witness on the internet. I can be wrong, never had any experiences with "shops".
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Help me please, doubts with sessions and cookies
« Reply #5 on: November 15, 2008, 02:02:28 PM »
Thanks a lot V@no, now I know what to do in some sides. Of course I will use an ecommerce system. But I only know Paypal. I will search it, so if I find something I will let you know for future interesting people.

A little question. Is secure save pass and user with md5? and i have thought to save ip from the user and if the ip is diferent i will request him the user and pass.
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Help me please, doubts with sessions and cookies
« Reply #7 on: November 15, 2008, 02:57:05 PM »
Thank you very much Nicky
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more