Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: Change Header content Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
d30DK
Groupie
Groupie


Joined: 09 February 2007
Online Status: Offline
Posts: 57
Posted: 30 August 2010 at 4:22am | IP Logged Quote d30DK

Hello,

I want to change my header name "Set-Cookie" content.

The content now is:
Set-Cookie: ASPSESSIONIDAADRSCTR=DOBJJHLBGJOIDMGDI

I want to change "ASPSESSIONIDAADRSCTR" to "PHPSESSIONIS" for example.

I tried this code and its not working (no error log also):

Header edit Set-Cookie ^\s*ASPSESSIONIDAADRSCTR\s*$ "PHPSESSIONIS"

Can someone help me please?

Thanks!

Back to Top View d30DK's Profile Search for other posts by d30DK
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1535
Posted: 30 August 2010 at 5:05am | IP Logged Quote Vyacheslav

Hello,
Please make sure mod_headers is enabled in httpd.conf. Related LoadModule directive must be uncommented.

Please also clarify what script engine sets the header. Is it PHP, ASP or ASP.NET?

You may try and check whether mod_headers works at all by setting a dummy header like this:
Code:
Header set My-Test-Header "foobar"


Note, mod_headers only works on IIS7 and IIS7.5.


Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
d30DK
Groupie
Groupie


Joined: 09 February 2007
Online Status: Offline
Posts: 57
Posted: 30 August 2010 at 5:09am | IP Logged Quote d30DK

It works cause i'm removing some headers but this one I want to change it content.

I have IIS 7.5, ASP I think create this header.

Thanks.

Back to Top View d30DK's Profile Search for other posts by d30DK
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1535
Posted: 30 August 2010 at 8:48am | IP Logged Quote Vyacheslav

Could you please provide the whole content of the .htaccess file.
Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
d30DK
Groupie
Groupie


Joined: 09 February 2007
Online Status: Offline
Posts: 57
Posted: 30 August 2010 at 10:05am | IP Logged Quote d30DK

I'm doing it on httpd.conf cause I need it to be on all websites.

The code is ok?

Back to Top View d30DK's Profile Search for other posts by d30DK
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1535
Posted: 30 August 2010 at 12:00pm | IP Logged Quote Vyacheslav

Could you please provide httpd.conf then. If you’re not comfortable with public forum, you may send the file over email to support@helicontech.com

Thank you.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
d30DK
Groupie
Groupie


Joined: 09 February 2007
Online Status: Offline
Posts: 57
Posted: 30 August 2010 at 12:12pm | IP Logged Quote d30DK

Sent it with details so you could know its me.

Thank you very much!

Back to Top View d30DK's Profile Search for other posts by d30DK
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum