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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:11:52+00:00 2026-06-19T01:11:52+00:00

This is a design advice question more than a coding question. I have an

  • 0

This is a design advice question more than a coding question. I have an application where the user needs to login and only after logging in, the user is allowed to upload data to the server. With PHP and sessions, it was very easy to store the logged in username in a session and then work everything from there.

With WCF, the only thing I can think of is storing the username and password locally when the user logs in and change the function to upload data from:

UploadData(string data);

to:

UploadData(string data, string username, string hashedPassword)

So the credentials are sent every time the data is sent. Is there a better implementation?
I’ve had a look at this, but it seems overly complicated:
http://hyperthink.net/blog/a-simple-ish-approach-to-custom-context-in-wcf/

Note that I need to be able to identify each user that calls UploadData individually.

  • 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-19T01:11:53+00:00Added an answer on June 19, 2026 at 1:11 am

    If the server you are calling is stateless then making an initial call to validate the user and from then on sending the credentials or some sort of session key in each method call does make the most sense.

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

Sidebar

Related Questions

This is more or less a design question. we have to process like a
I guess this more of a design question, but I currently have a REST
This is a very beginner question. I have tried to search for advice but
I have question here, i design multiview application using view base template. Page 1
I am posing this question looking for practical advice on how to design a
I have a question about the design of an application I'm working on. I
I have this design which I cannot seem to get right, I would like
I have tough time making this design decision. I could go with traditional new
I have already read this question which talks about the same thing but I
I have a bit of a design question if anyone at there cares to

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.