Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4088220
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:57:15+00:00 2026-05-20T18:57:15+00:00

I have a few questions about security using PHP, I dont want to use

  • 0

I have a few questions about security using PHP, I dont want to use sessions so I am using POST to authenticate user from page to page, so:-

1) If I have a register form using method=’POST’ obviously I would need to filter out the data when its been sent to check if its valid and I also need SSL (https) on that page. Now just for register form which is very small ie name, email, password would filter checks and https be enough security just for this stage. I also have a captcha on register form to avoid spam.

2)Is it ok to send data like userid value like(ie 123456) in a hidden POST field so I can determine the user in database that is sending data, to avoid having to use sessions etc. Possibly send email address as well but nothing like passwords or very sensitive info. I would obviously check if the format is right for user id using regular expression ie if its x number of digits, same thing if posting email address.
The reason I would send userid value and email address is so when user posts data in form after say register/login in they can fill out forms and I add a few hidden fields along with form to identify what user by using the email add and user id hidden value posted, they both have to be correct in mysql query otherwise error message, so even if tampered a hacker would have to guess right userid to email add.
Also if the pages have ssl would this make be ok.

Hope this makes sense?
Thanks

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:57:16+00:00Added an answer on May 20, 2026 at 6:57 pm

    This is by definition insecure, hijacking a session would be as easy as changing the value of the hidden form. If you know the UserId of another user, changing it into that value would make your application think that person is logged in.

    I’m not sure what your reasons are to not use sessions, you should definitely reconsider.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few questions about using lock to protect my shared data structure. I
I have a few questions about Core Location. 1) Should the user refuse permission
I have few questions about this code: <?php $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv =
I have a few questions about sessions and login/logout systems. In my system, first
Im a newbie PHP programmer and I have a few questions about creating a
I have few questions about the capability of SSIS package. I want to create
I have a few questions about this function from John Resig's exercise #19 in
I have a few questions about PHP memory usage. I'm going to run some
I have few questions about ssis transction isolation levels. consider a scenario:I have an
I have a few questions about Xcode and interaction with GCC 4.2.1: It doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.