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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:14:54+00:00 2026-05-20T15:14:54+00:00

I am creating a web application within GAE environment. It heavily uses AJAX/JSON to

  • 0

I am creating a web application within GAE environment. It heavily uses AJAX/JSON to send/receive data and all about that. I don’t worry much about browsers with JS disabled and obsolete browsers as it’s my personal project and I am trying to make it simple and not bloated in code. So, I use JavaScript heavily in the project. Please advise me how to manage cookies and sessions in that case better. I have two variants – use HTTP Set-Cookie where possible and JavaScript where it’s not. The second is opposite – use JavaScript where possible. Both variants work fine now but I want to make it right way. With JavaScript scenario when there a cookie needs to be set, I get some data over AJAX with some keys, then with a jQuery plugin set these keys to cookies and vice versa, read cookies with JS and send them over AJAX. What a re pros and cons of both methods? Thanks!

  • 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-20T15:14:54+00:00Added an answer on May 20, 2026 at 3:14 pm

    You should set your cookies wherever it’s most convenient.
    That probably means that some cookies will come from the server and some from the client.

    Note, however, that, for security reasons, high-risk cookies (such as a login token) should be HTTP-Only so that they cannot be accessed from Javascript.

    (It goes without saying that they should be SSL-only)

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

Sidebar

Related Questions

Within my web application, I was thinking of creating a pop-up screen of a
When creating a web application, and lets say you have a User object denoting
I'm creating a web application for work where the user has to enter the
I am part of a team creating a web application using PHP and MySQL.
I am part of a team creating a web application using PHP and MySQL.
I am creating a mobile web application using asp.net. The application must support iPhone,
I asked this Can I automate creating a .NET web application in IIS? a
For a web application, when creating the user which will connect to the MySQL
When I'm creating a user for my web application, an SMTP email (using ASP.NET's
I'm creating an ASP.NET web application to schedule tasks on our server from a

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.