Computing.Net > Forums > Web Development > cookies via numerous languages

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

cookies via numerous languages

Reply to Message Icon

Name: Don Arnett
Date: March 31, 2008 at 09:21:28 Pacific
OS: na
CPU/Ram: na
Product: na
Comment:

My base question: can I write a cookie in one language and access it via another language?

Specific situation: at work we have numerous webbased applications, written in PHP, Perl, and ColdFusion. Last year, we built a centralized login database that all internal applications use to retrieve login info/permissions.

This allows a user to have one login/password for all of the internal applications. But the current setup still requires that the user login to each separate application. I'm trying to figure out a way to have the user log in once and be able to access each application that uses this centralized login database.

My thought is that the first time a user logs in (during the defined time period), the process handling the login will write a cookie with the user id. Subsequent applications will look for the cookie and if it exists, use the user id to get permission info from the central database, thus the user won't have to go thru the login process again (until the cookie expires).

But, the applications are written by different people, at different times and in different languages. So, one question that occurs to me, is can language A read a cookie written by language B.

Given that cookies are just text files, it would seem likely, but ...?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: TheNerd
Date: March 31, 2008 at 13:47:37 Pacific
Reply:

There shouldn't be any problems accessing cookies with any language. Since cookies mostly contain a string of data you just need to know what to do with the data.

It's plain text so any language that can handle text file surely can handle a cookie.

Tech Alpha Computer Forums


0

Response Number 2
Name: Michael J (by mjdamato)
Date: March 31, 2008 at 15:12:29 Pacific
Reply:

As long as all the applications accessing the cookie are on the same domain there should be no problem.

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: cookies via numerous languages

Autoplay audio once per visit www.computing.net/answers/webdevel/autoplay-audio-once-per-visit/2724.html

Dam PHP! www.computing.net/answers/webdevel/dam-php/752.html

Cookie Problems (I think) www.computing.net/answers/webdevel/cookie-problems-i-think/1247.html