If you get the session value stored in memcached by symfony

Source: Internet
Author: User
The current project uses PHP to write sessions and uses sumfony to store in memcached. I now use nodejs to write a service. This session is required to verify user logon, but the user information in memcached is encrypted, I want to know how to get the data I want {code ...} m... currently, sessions written in PHP are stored in memcached using sumfony.

I now use nodejs to write a service. I need to use this session to verify user logon, but the user information in memcached is encrypted. How can I get the data I want?

'sesskfglsvv8rg2ehduatpc3p353c1': 'FwQy3UZ20Yz8f7ESac2zz1aOMmogSzDpIoJGJV9LXA8dut5it0GJH--7g1Um0MGu6AVsOiYr_sUi5FRqSt1LzW9Y47r3L3hFMmdOXuPLPUwOUYQPGujpOS1tbVga_ImcnNeL8KO2_LjjSBE45sesXr9F4tMDoaj1W5eO9RYOMF-p3aFv7y1TS7UXqlSWF4Cj'

In memcached, the key can be obtained from cookies, but the value is encrypted. How can I obtain the original string?

Reply content:

Currently, sessions written in PHP are stored in memcached using sumfony.

I now use nodejs to write a service. I need to use this session to verify user logon, but the user information in memcached is encrypted. How can I get the data I want?

'sesskfglsvv8rg2ehduatpc3p353c1': 'FwQy3UZ20Yz8f7ESac2zz1aOMmogSzDpIoJGJV9LXA8dut5it0GJH--7g1Um0MGu6AVsOiYr_sUi5FRqSt1LzW9Y47r3L3hFMmdOXuPLPUwOUYQPGujpOS1tbVga_ImcnNeL8KO2_LjjSBE45sesXr9F4tMDoaj1W5eO9RYOMF-p3aFv7y1TS7UXqlSWF4Cj'

In memcached, the key can be obtained from cookies, but the value is encrypted. How can I obtain the original string?

Http://segmentfault.com/q/1010000000256430

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.