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 9097713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:11:02+00:00 2026-06-17T00:11:02+00:00

I know this is a fundamental understanding problem, but as a novice I would

  • 0

I know this is a fundamental understanding problem, but as a novice I would love if someone would be willing to clarify this for me.

Right now, my site works for a single user, me. The answer comes in to a reply.php page, where I parse and save the data to my database.

For multiple users, my readings point to having to use “Sessions”, where each session can set a UserID and other useful, personalized information stored in a cookie.

My question is: can I use a unique identifier such as session data to create a unique address for that user to be redirected to? If not, what do I use?

I saw an example online indicating something like www.site.com/replies/dfb97g or `www.site.com/replies.php?dfb97g

I’d like a clarification on how to proceed.

  • 1 1 Answer
  • 0 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-06-17T00:11:04+00:00Added an answer on June 17, 2026 at 12:11 am

    It makes no sense to do this…

    Using SESSION and GET

    User completes a form which posts to reply.php

    reply.php

    <?php 
    session_start();
    $_SESSION['userid'] = strtotime('now'); # don't use this as a user id, it's just an example
    
    #add something to db using generated userid
    
    header("location: replies.php?userid=".$_SESSION['userid']);
    ?>
    

    replies.php

    <?php
    #session_start(); don't even need it
    
    # get something from db where userid=".$_GET['userid'];
    
    # output something
    ?>
    

    Using SESSION normally

    User completes a form which posts to reply.php

    reply.php

    <?php 
    session_start();
    $_SESSION['userid'] = strtotime('now'); # don't use this as a user id, it's just an example
    
    #add something to db using generated userid
    
    header("location: replies.php");
    ?>
    

    replies.php

    <?php
    session_start(); 
    
    # get something from db where userid=".$_SESSION['userid'];
    
    # output something
    ?>
    

    There’s no need to pass the variable when you have it in session.

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

Sidebar

Related Questions

I know this is a fundamental java question, but i am relatively new to
This is probably a really fundamental question, but I'm afraid I don't know much
I know this is just a fundamental question but still somewhere I am missing
I realize this is probably a fundamental thing I should know but I am
I know this is fairly fundamental stuff. I have a class with a function
Know this might be rather basic, but I been trying to figure out how
i know this is a stupid question but i d'ont know how to do
I know this is possible in Perl, but I was wondering if this can
I know this is an old question, but I have spend any hours on
I know this is probably something simple but I can't seem to find anything

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.