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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:04:12+00:00 2026-05-27T13:04:12+00:00

A simple example of Snaplet and Session here $ curl http://localhost:8000/sessioin -d key=k&value=v k

  • 0

A simple example of Snaplet and Session here

$ curl http://localhost:8000/sessioin -d "key=k&value=v"
k
getter

$ curl http://localhost:8000/sessioin

getter

I cannot get session in the 2nd request.

  • 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-27T13:04:12+00:00Added an answer on May 27, 2026 at 1:04 pm

    Depending on your definition of with, you probably forgot to commit your session after you set values in it.

    Also, you’re using curl to test this system. curl doesn’t preserve cookies by default, which is why your session cookie is lost. Try using this (works on my machine):

    curl -c cookies.txt http://localhost:8000/session -d "key=k&value=v"
    curl -b cookies.txt http://localhost:8000/session
    

    See also the revised answer to your previous question.

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

Sidebar

Related Questions

I extracted simple example: require 'pp' x = 1..3 pp x.map do |i| {:value
A simple example. alt text http://img19.imageshack.us/img19/1854/51445300.jpg A have a class TDMReader which is a
I need a simple example where we POST some HTTP request to the server.
Here I have a simple example to find an item in a list of
Here's a simple example of a program that concatenates two strings. #include <stdio.h> void
Here is a very simple example in Java intended to print out all of
Very simple example: http://jsbin.com/ohude Click button1, the 'hello2' text p should change z-index to
Here is a very simple example. public interface IMyInterfaceProperty { } public class MyProperty
I am using the simple example shown here in order to create tabs on
A simple example: Let's say I have one alias being sourced somewhere as: alias

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.