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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:30:47+00:00 2026-05-26T20:30:47+00:00

I am using Apache and PHP as my front-end server and Tornado as my

  • 0

I am using Apache and PHP as my front-end server and Tornado as my
back-end to handle my requests. When allowing a user to login I want
to create cookies for the username and password. If I do it as
follows:

self.set_cookie('emailaddress', email_address, domain='mydomain.com', expires=None, path='/', expires_days=expire_d)
self.set_cookie('password', newpass, domain='mydomain.com', expires=None, path='/', expires_days=expire_d)

Nothing is created. But if I do:

self.set_cookie('emailaddress', email_address) 
self.set_cookie('password', newpass) 

It works. But than even though the cookies which I can see from
Firefox and Firebug but PHP on my front-end doesn’t recognize them.
Also I know its not from cross-domain because I have my Tornado server
Proxy through Apache.

  • 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-26T20:30:48+00:00Added an answer on May 26, 2026 at 8:30 pm

    Yes, it seems like the problem is related to subdomains if you are using them to route between Tornado and PHP, without details on this it’s hard to tell how to fix it.

    But in general maybe it will be a good idea to just map Tornado to some relative url on a main domain and do not mess with subdomains?

    P.S.: storing login/password pairs in cookies in plain text is not secure, I’d recomend to use unique session id mapped to users via common database between PHP and Tornado.

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

Sidebar

Related Questions

in windows (using apache as server), my file path directory will be C:\xampp\htdocs\mysvn\PhpDocumentor\phpdoc.php. But
I'm trying to setup an Apache/PHP/Postgresql server locally on my machine. I'm using Windows
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that
I have a problem when I want to launch VLC from Apache using PHP.
I am using apache server for php. So my doubt is can I use
I'm using a PHP-JAVA bridging using Apache thrift. A java server file, it is
Using Apache 2.2 and PHP 5, what's the best way to run PHP without
I have a product catalog using apache, php and mysql. I need to put
I am using PHP with Apache on Linux, with Sendmail. I use the PHP
I am Using Flex 3 and apache with PHP 5.2. I am searching for

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.