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

  • Home
  • SEARCH
  • 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 8322067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:15:00+00:00 2026-06-08T23:15:00+00:00

So I’ve made a web app that among other, allows administrators to change user

  • 0

So I’ve made a web app that among other, allows administrators to change user profile data. There is of course a page where user can change his own data, same goes for admins too.
So admin has basically 2 pages where he can change his own data, on User Administration page and My Profile page. Problem occurs when admin changes data on User Administration page it won’t show changes on My Profile, but vise-versa works fine.

I’ve realized that issue lies with the way data is imported. On UA page it goes directly from database, while on My Profile page it goes through a current user session variable I created. So it won’t update it as it should, I’ve gone around and searched for a way to go around this but tough luck so far, so I’d appreciate assistance.

Thank you.

EDIT:

Ok so I create a Session.Item("login") when user logs in, like so:

Context.Session.Add("login", userData)

Where userData is my current user, containing username, password, firstname, lastname etc… An instance of my User class to put it shortly.

Then on my User Control I have in my Page_Load

If Not Page.IsPostBack Then
    Dim login As New User
    login = Session.Item("login")
    PopulateUsersData(login)
End If

I get my data for User Control named My Profile from this. Method PopulateUserData only shows data from login instance to my controls on page.

The Session.Item("login") is the Session variable I wish to update.

Hope this is enough data.

  • 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-08T23:15:02+00:00Added an answer on June 8, 2026 at 11:15 pm

    You can fix this by treating the user information in the same way in both places.

    You check if the user being edited is the logged in user, if so, update the current logged in info as well as the database entry.

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

Sidebar

Related Questions

I know there's a lot of other questions out there that deal with this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
We're building an app, our first using Rails 3, and we're having to build

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.