#27328: return `Set-Cookie` if sessionid=  None value
     Reporter:  Ramin Farajpour      |                    Owner:  nobody
  Cami                               |
         Type:  Bug                  |                   Status:  new
    Component:  contrib.sessions     |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0

Comment (by Ramin Farajpour Cami):

 Hi Tim,

 sorry for delay,

 Cookies are set using the Set-Cookie HTTP header, sent in an HTTP response
 from the web server. This header instructs the web browser to store the
 cookie and send it back in future requests to the server (the browser
 will, of course, ignore this header if it does not support cookies or has
 disabled cookies).

 As an example, the browser sends its first request to the homepage of the
 www.example.org website:

 GET /index.html HTTP/1.1
 Host: www.example.org

 The server responds with two `Set-Cookie` headers:

 HTTP/1.0 200 OK
 Content-type: text/html
 Set-Cookie: sessionid=12132313; Expires=Wed, 09 Jun 2021 10:18:14 GMT

 The server's HTTP response contains the contents of the website's

 The value of a cookie can be modified by the server by including a Set-
 Cookie header in response to a page request. The browser then replaces the
 old value with the new value.

 There are many different potential contexts and thus many
 different potential types of session.  The designers' paradigm for
 sessions created by the exchange of cookies has these key attributes:

       1.  Each session has a beginning and an end.

       2.  Each session is relatively short-lived.

       3.  Either the user agent or the origin server may terminate a

       4.  The session is implicit in the exchange of state information.

 for DEMO  Video Tim i will send email for you (timogra...@gmail.com) , not
 here Tim, sorry because this is a my real projects

Ticket URL: <https://code.djangoproject.com/ticket/27328#comment:24>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to