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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:34:02+00:00 2026-06-08T19:34:02+00:00

I found a nice article about client side authentication with backbone.js. I need to

  • 0

I found a nice article about client side authentication with backbone.js.

I need to access a cookie which is generated from server side.

This leads me to the question how do I access the play cookie where some user information is stored in? I am using the Securesocial framework which stores its information in cookies as well.

Is there any chance to do this or are there any alternatives? I also thought about putting call to my REST api “/user” which is sending me back if the user is logged in and other information. This information is than put into a singleton in backbone so I can access this information very easily. I dont know if this is the best way and of course sending everytime a request for gaining the user information is a little bit overhead.

Background information is: I am using backbone for leaving comments to other users. Therefore I need to know which user is currently logged in and if he has the permisssion to delete his own comments.

The login is handled by play with the typical approach and rendering html. I am using therefore the SocialSecure Module.

  • 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-08T19:34:04+00:00Added an answer on June 8, 2026 at 7:34 pm

    Reading the cookie value is a very simple process, but I’d recommend using some ready-made plugin to speed things up.

    Cookies are stored as key-value pairs, so in order to access the value you want, you need to know the key (aka cookie name).

    Since you probably are already using jQuery as one of the libraries with Backbone, a good choice would be the following library: https://github.com/carhartl/jquery-cookie/

    It’s very lightweight and does exactly what you need. Just include that library after you’ve included the jQuery library, and after that, accessing the cookie values is just as simple as:

    var myCookieValue = $.cookie('cookie_name_here');
    

    After this, it’s only matter of interpreting the data stored in that value.

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

Sidebar

Related Questions

I have to do that filter, I've found nice article about that ( http://www.codersource.net/csharp_image_processing_erosion.aspx
Well I found a nice tutorial about how to program applications using Bonjour. It's
Using XSL 1.0, I found a nice tokenize function. Now I need to for-each
I just found out about yield return , I seems really nice. I use
I've found nice post: Singleton WCF Proxy . It is about the implementation of
I've found a nice article on how to create Chart progammaticaly in ASP.NET MVC
I found a nice bit of code to add some 'normal' text links (i.e.
I found a nice script to import xml using powershell http://slash4.de/tutorials/Automatic_mediawiki_page_import_powershell_script Currently I don't
I just found a nice tutorial that will help me implement an easy user
I'm writing a JavaScript application, and I found a nice library qtip2 . My

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.