What is "My links" and what are they for?
Unique session ID upon URL rewrite
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > Unique session ID upon URL rewrite 22 August 2002 13:00:25

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Unique session ID upon URL rewrite

A.P Kwee 22 August 2002 13:00:25
 |**|Hi,

I hope that this is the right channel to post this question.

I am trying to force all requests for *.html pages to a jsp file which
will perform some checks on whether the users has logged on before
displaying the html file.

I have successfully redirected all request from my apache webserver to
my tomcat using mod_rewrite but I am facing this problem that every
request that gets rewritten to the jsp file is a unique session id. I've
verified this by doing a println for the sessionid.

I would appreciate greatly if anyone can share some light on my problem.

Thks and Best Regards,
Ann Peng


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Dirk-Willem van Gulik 21 August 2002 13:18:29 permanent link ]
 
You are propably 'loosing' the sessionid which is either the cookie in the
Header (the Cookie: header line) or a cookie in the URI somehow; -or-
when you display the HTML the links in that page do not contain the
session id and/or the returned page does not set the cookie properly.

You may want to use 'telnet www.foo.com 80' to check this:

http://www.cs.ucsd.­edu/classes/wi97/cse­80/lec15/

and verify exactly where the session ID ends up.

Dw.

On Wed, 21 Aug 2002, A.P Kwee wrote:
|**|Hi,>
I hope that this is the right channel to post this question.>
I am trying to force all requests for *.html pages to a jsp file which> will perform some checks on whether the users has logged on before> displaying the html file.>
I have successfully redirected all request from my apache webserver to> my tomcat using mod_rewrite but I am facing this problem that every> request that gets rewritten to the jsp file is a unique session id. I've> verified this by doing a println for the sessionid.>
I would appreciate greatly if anyone can share some light on my problem.>
Thks and Best Regards,> Ann Peng>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
A.P Kwee 22 August 2002 13:00:25 permanent link ]
 Thanks DW for the prompt reply!

Managed to find a walkaround for my problem. This is all due to the
tighter restrictions frmo the servlet specs v2.2. For more info, go to
this site:

http://jakarta.apac­he.org/tomcat/tomcat­-3.2-doc/tomcat-apac­he-howto.html#error_­rewrite_usedto

Best Regards,
Ann Peng

Dirk-Willem van Gulik wrote:
You are propably 'loosing' the sessionid which is either the cookie in the>Header (the Cookie: header line) or a cookie in the URI somehow; -or->when you display the HTML the links in that page do not contain the>session id and/or the returned page does not set the cookie properly.>
You may want to use 'telnet www.foo.com 80' to check this:>
and verify exactly where the session ID ends up.>
Dw.>
On Wed, 21 Aug 2002, A.P Kwee wrote:>
|**|Hi,>>
I hope that this is the right channel to post this question.>>
I am trying to force all requests for *.html pages to a jsp file which>>will perform some checks on whether the users has logged on before>>displaying the html file.>>
I have successfully redirected all request from my apache webserver to>>my tomcat using mod_rewrite but I am facing this problem that every>>request that gets rewritten to the jsp file is a unique session id. I've>>verified this by doing a println for the sessionid.>>
I would appreciate greatly if anyone can share some light on my problem.>>
Thks and Best Regards,>>Ann Peng>>
-----------------­--------------------­--------------------­------------>>The official User-To-User support forum of the Apache HTTP Server Project.>>See <URL:http://httpd.a­pache.org/userslist.­html> for more info.>>To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>>For additional commands, e-mail: users-help@httpd.ap­ache.org>>
------------------­--------------------­--------------------­----------->The official User-To-User support forum of the Apache HTTP Server Project.>See <URL:http://httpd.a­pache.org/userslist.­html> for more info.>To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg>For additional commands, e-mail: users-help@httpd.ap­ache.org>



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > Unique session ID upon URL rewrite 22 August 2002 13:00:25

see also:
MIME::Entity fills my memory
string insertion
Manage Oracle Archivelogs
пройди тесты:
see also:
I dont know wat to say
Light House
My Sister's B'day Wish for Me!!!

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .