Hey! So, AIOHTTP does handle cookies automatically if you’re using the `ClientSession`. It stores cookies from responses and sends them back with subsequent requests.
If you need to manually set cookies, you can use the `cookies` parameter in your request. Here’s a quick example:
```python
import aiohttp
import asyncio
async def main():
cookies = {'session_id': '12345'}
async with aiohttp.ClientSession(cookies=cookies) as session:
async with session.get('https://example.com') as response:
print(await response.text())
asyncio.run(main())
```
Check out the [official docs](https://docs.aiohttp.org/) for more details. They’re pretty solid once you get the hang of it!
If you need to manually set cookies, you can use the `cookies` parameter in your request. Here’s a quick example:
```python
import aiohttp
import asyncio
async def main():
cookies = {'session_id': '12345'}
async with aiohttp.ClientSession(cookies=cookies) as session:
async with session.get('https://example.com') as response:
print(await response.text())
asyncio.run(main())
```
Check out the [official docs](https://docs.aiohttp.org/) for more details. They’re pretty solid once you get the hang of it!
