# Getting the session cookie name

**URL:** <https://www.ruby-forum.com/t/getting-the-session-cookie-name/114722>\
**Category:** Rails\
**Created:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/getting-the-session-cookie-name/114722 "2007-09-17T13:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/getting-the-session-cookie-name/114722/1 "2007-09-17T13:24:47Z")

</div>

Hi,

I have a session in my app.

A session is just a cookie that references something in my db, right?

I’m using the swfupload code and I need to have it include the cookie  
in it’s headers when it makes a request.

I see when I make ajax requests the cookie is named:

\_test-app\_session\_id=4630ff4b078899ea7c4c07e6dba26f89

How can I get this string in rails so I can set this in the header?
