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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:42:35+00:00 2026-05-28T06:42:35+00:00

I have a little architecture issue. On my site user can register and when

  • 0

I have a little architecture issue.
On my site user can register and when they log in on site based on userID I redirect user to his profile page (something like facebook).
User can from this page click on another user from list and go to his profile page.
When user come on his friend profile page he can access to some links on that page to see more information on this friend (like his friends list, images, info etc.).
So what I am doing now is when user click on his friend I save friendID in Session.
And later when I need access something I first get data from session and go.
I wonder is this approach good or bad?
It works but I wonder is there better approach?

  • 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-05-28T06:42:36+00:00Added an answer on May 28, 2026 at 6:42 am

    IMHO, it’s not a good design. This is like using a global variable to reference the “current friend”. Obviously, this makes it impossible to view information about two different friends at once, by opening the “friend info” page in another browser tab or window, for example.

    It also couples the “friend info” page to the “friend list” page. This means that any other page which wants to link to the friend info page must put the friend ID in the session, and that you’re forced to go through one of these pages to see a friend info. If the user bookmarks the friend info page, closes his session, reopens one, and uses his bookmark, it will fail.

    And finally, it makes the application stateful, whereas it could stay stateless by having the “friend list” page simply link to the “friend info” page by using a link such as friendInfo?friendId=<the friend ID>.

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

Sidebar

Related Questions

we have a classical 3-tier-architecture application. Now we face a little problem and we
I have little question about how web browser retrieve webpage? I know this User
I’m having a little Architecture problem. In my project I have a Business Logic
I have read some web articles about Three-Tier Architecture. However, I am little bit
I have a simple architecture at the moment which looks a little something like
I have a need to migrate a legacy, desktop based, single user, accounting application
I have a very module-based architecture in my infosystem that is installed to hundreds
Little question concerning app architecture: I have a python script, running as a daemon.
I have little unusual problem to solve. I need some hint or links to
I have little bit longer question for you - but hope answer will be

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.